You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by jeusdi <ca...@terra.es> on 2008/06/18 11:43:34 UTC

Unexpected subelement

Hello list, I have a problem with Axis2 Web Service. I call my web service
deployed correctly on Axis2 web application, and I call it from a .NET
client generated from wsdl.exe Visual Studio tool. The response that I
receive from Axis2 is:

<soapenv:Reason
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"><soapenv:Text
xml:lang="en-US">org.apache.axis2.databinding.ADBException: Unexpected
subelement processor</soapenv:Text></soapenv:Reason>

processor is a item of CreateLicenceRequest message defined in WSDL file as
follow-->

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<wsdl:definitions
		xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
		xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
		xmlns:tns="http://www.grupmicros.com/LicenceManager/"
		xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
		xmlns:xsd="http://www.w3.org/2001/XMLSchema"
		name="LicenceManager"
		targetNamespace="http://www.grupmicros.com/LicenceManager/">
		
  <wsdl:message name="CreateLicenceRequest">
    <wsdl:part name="mac" type="xsd:string"/>
    <wsdl:part name="processor" type="xsd:string"/>
    <wsdl:part name="wind_id" type="xsd:string"/>
    <wsdl:part name="client" type="xsd:string"/>
  </wsdl:message>
  <wsdl:message name="CreateLicenceResponse">
    <wsdl:part name="licence" type="xsd:base64Binary"/>
  </wsdl:message>
  <wsdl:portType name="LicenceManagerPortType">
    <wsdl:operation name="CreateLicence">
      <wsdl:input message="tns:CreateLicenceRequest"/>
      <wsdl:output message="tns:CreateLicenceResponse"/>
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="LicenceManagerHTTPBinding"
type="tns:LicenceManagerPortType">
    <http:binding verb="POST"/>
    <wsdl:operation name="CreateLicence">
      <http:operation location="/CreateLicence"/>
      <wsdl:input>
        <mime:content type="application/x-www-form-urlencoded"/>
      </wsdl:input>
      <wsdl:output>
        <mime:content type="text/xml"/>
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="LicenceManager">
  	<wsdl:documentation>Web Service for managing GmSoft software
licences</wsdl:documentation>
    <wsdl:port binding="tns:LicenceManagerHTTPBinding"
name="LicenceManagerHTTP">
      <http:address location="http://www.example.org/"/>
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>

I call it from .NET client as follow:
LicenceManager manager = new LicenceManager();
System.Xml.XmlElement element = manager.CreateLicence("mac", "processor",
"finestra", "client");

Thanks for all in advanced.
I will appreciate a lot your help.
-- 
View this message in context: http://www.nabble.com/Unexpected-subelement-tp17979173p17979173.html
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Unexpected subelement

Posted by keith chapman <ke...@gmail.com>.
Hi,

As I said before this looks like an issue in the generated WSDL The location
should have been whttp:location="LicenceManager/CreateLicence" instead of
whttp:location="/CreateLicence". If you trued my suggestion it will work for
you. Can you try that please.  BTW here is what httpLocation means [1]

Thanks,
Keith.
[1] http://wso2.org/node/3715

On Fri, Jun 20, 2008 at 2:45 PM, jeusdi <ca...@terra.es> wrote:

>
> I've used WSDL2Java in order to generate my stub using ADB DataBinding and
> the command generates a LicenceManagerStub.java that contains all classes
> inside it.
>
> http://www.nabble.com/file/p18025922/LicenceManagerStub.java
> LicenceManagerStub.java
>
> --
> View this message in context:
> http://www.nabble.com/Unexpected-subelement-tp17979173p18025922.html
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org

Re: Unexpected subelement

Posted by jeusdi <ca...@terra.es>.
I've used WSDL2Java in order to generate my stub using ADB DataBinding and
the command generates a LicenceManagerStub.java that contains all classes
inside it.

http://www.nabble.com/file/p18025922/LicenceManagerStub.java
LicenceManagerStub.java 

-- 
View this message in context: http://www.nabble.com/Unexpected-subelement-tp17979173p18025922.html
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Unexpected subelement

Posted by pierre betz <pi...@gmail.com>.
I think you do have a CreateLicence.java file used to send the request, and
a parse function in it, could you send it ?

Re: Unexpected subelement

Posted by jeusdi <ca...@terra.es>.
I don't understand. I've used a WSDL 1 in order to generate the server and
client. The file is (WSDL 1):
<wsdl:definitions name="LicenceManager"
targetNamespace="http://www.grupmicros.com/LicenceManager/"
xmlns:tns="http://www.grupmicros.com/LicenceManager/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
  <wsdl:message name="CreateLicenceRequest">
    <wsdl:part name="mac" type="xsd:string">
    </wsdl:part>
    <wsdl:part name="proc_id" type="xsd:string">
    </wsdl:part>
    <wsdl:part name="wind_id" type="xsd:string">
    </wsdl:part>
    <wsdl:part name="client" type="xsd:string">

    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="CreateLicenceResponse">
    <wsdl:part name="licence" type="xsd:base64Binary">
    </wsdl:part>
  </wsdl:message>
  <wsdl:portType name="LicenceManagerPortType">
    <wsdl:operation name="CreateLicence">
      <wsdl:input message="tns:CreateLicenceRequest">

    </wsdl:input>
      <wsdl:output message="tns:CreateLicenceResponse">
    </wsdl:output>
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="LicenceManagerHTTPBinding"
type="tns:LicenceManagerPortType">
    <http:binding verb="POST"/>
    <wsdl:operation name="CreateLicence">
      <http:operation location="/CreateLicence"/>

      <wsdl:input>
        <mime:content type="application/x-www-form-urlencoded"/>
      </wsdl:input>
      <wsdl:output>
        <mime:content type="text/xml"/>
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="LicenceManager">

<wsdl:documentation>Web Service for managing GmSoft software
licences</wsdl:documentation>
    <wsdl:port name="LicenceManagerHTTP"
binding="tns:LicenceManagerHTTPBinding">
      <http:address
location="http://192.168.1.2:8080/axis2/services/LicenceManager"/>
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>


-- 
View this message in context: http://www.nabble.com/Unexpected-subelement-tp17979173p18023937.html
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Unexpected subelement

Posted by keith chapman <ke...@gmail.com>.
Are you using Axis2 1.2? There seem to be an issue in the WSDL and i suspect
you used a stub to invoke the service.  The whttp:location in the
HTTPBinding should have been whttp:location="LicenceManager/CreateLicence"
instead of whttp:location="/CreateLicence". Here is an workaround. Save the
WSDL edit it as I have mentined and drop it into the META-INF directory of
the service archive. Now your generated WSDL should have
whttp:location="LicenceManager/CreateLicence" and the generated stub should
work.

Thanks,
Keith.

>

On Thu, Jun 19, 2008 at 9:39 PM, jeusdi <ca...@terra.es> wrote:

>
> <wsdl2:description
> targetNamespace="http://www.grupmicros.com/LicenceManager/">
> <wsdl2:documentation>LicenceManager</wsdl2:documentation>
> −
>        <wsdl2:types>
> −
>        <xsd:schema attributeFormDefault="unqualified"
> elementFormDefault="unqualified"
> targetNamespace="http://www.grupmicros.com/LicenceManager/">
> −
>        <xsd:element name="CreateLicence">
> −
>        <xsd:complexType>
> −
>        <xsd:sequence>
> <xsd:element form="unqualified" name="proc_id" type="xsd:string"/>
> <xsd:element form="unqualified" name="client" type="xsd:string"/>
> <xsd:element form="unqualified" name="wind_id" type="xsd:string"/>
> <xsd:element form="unqualified" name="mac" type="xsd:string"/>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> −
>        <xsd:element name="CreateLicenceResponse">
> −
>        <xsd:complexType>
> −
>        <xsd:sequence>
> <xsd:element form="unqualified" name="licence" type="xsd:base64Binary"/>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> </xsd:schema>
> </wsdl2:types>
> −
>        <wsdl2:interface name="LicenceManagerPortType">
> −
>        <wsdl2:operation name="CreateLicence"
> style="http://www.w3.org/ns/wsdl/style/rpc
> http://www.w3.org/ns/wsdl/style/iri
> http://www.w3.org/ns/wsdl/style/multipart" wrpc:signature="proc_id #in
> client #in wind_id #in mac #in licence #return "
> pattern="http://www.w3.org/ns/wsdl/in-out">
> <wsdl2:input element="tns:CreateLicence"/>
> <wsdl2:output element="tns:CreateLicenceResponse"
> wsaw:Action="
> http://www.grupmicros.com/LicenceManager/LicenceManagerPortType/CreateLicenceResponse
> "/>
> </wsdl2:operation>
> </wsdl2:interface>
> −
>        <wsdl2:binding name="LicenceManagerHTTPBinding"
> interface="tns:LicenceManagerPortType" whttp:methodDefault="POST"
> type="http://www.w3.org/ns/wsdl/http">
> <wsdl2:operation ref="tns:CreateLicence"
> whttp:inputSerialization="application/x-www-form-urlencoded"
> whttp:location="/CreateLicence"/>
> </wsdl2:binding>
> −
>        <wsdl2:service name="LicenceManager"
> interface="tns:LicenceManagerPortType">
> <wsdl2:endpoint name="LicenceManagerHTTP"
> binding="tns:LicenceManagerHTTPBinding" address="http://www.example.org/
> "/>
> </wsdl2:service>
> </wsdl2:description>
> --
> View this message in context:
> http://www.nabble.com/Unexpected-subelement-tp17979173p18012455.html
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org

Re: Unexpected subelement

Posted by jeusdi <ca...@terra.es>.
<wsdl2:description
targetNamespace="http://www.grupmicros.com/LicenceManager/">
<wsdl2:documentation>LicenceManager</wsdl2:documentation>
−
	<wsdl2:types>
−
	<xsd:schema attributeFormDefault="unqualified"
elementFormDefault="unqualified"
targetNamespace="http://www.grupmicros.com/LicenceManager/">
−
	<xsd:element name="CreateLicence">
−
	<xsd:complexType>
−
	<xsd:sequence>
<xsd:element form="unqualified" name="proc_id" type="xsd:string"/>
<xsd:element form="unqualified" name="client" type="xsd:string"/>
<xsd:element form="unqualified" name="wind_id" type="xsd:string"/>
<xsd:element form="unqualified" name="mac" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
−
	<xsd:element name="CreateLicenceResponse">
−
	<xsd:complexType>
−
	<xsd:sequence>
<xsd:element form="unqualified" name="licence" type="xsd:base64Binary"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</wsdl2:types>
−
	<wsdl2:interface name="LicenceManagerPortType">
−
	<wsdl2:operation name="CreateLicence"
style="http://www.w3.org/ns/wsdl/style/rpc
http://www.w3.org/ns/wsdl/style/iri
http://www.w3.org/ns/wsdl/style/multipart" wrpc:signature="proc_id #in
client #in wind_id #in mac #in licence #return "
pattern="http://www.w3.org/ns/wsdl/in-out">
<wsdl2:input element="tns:CreateLicence"/>
<wsdl2:output element="tns:CreateLicenceResponse"
wsaw:Action="http://www.grupmicros.com/LicenceManager/LicenceManagerPortType/CreateLicenceResponse"/>
</wsdl2:operation>
</wsdl2:interface>
−
	<wsdl2:binding name="LicenceManagerHTTPBinding"
interface="tns:LicenceManagerPortType" whttp:methodDefault="POST"
type="http://www.w3.org/ns/wsdl/http">
<wsdl2:operation ref="tns:CreateLicence"
whttp:inputSerialization="application/x-www-form-urlencoded"
whttp:location="/CreateLicence"/>
</wsdl2:binding>
−
	<wsdl2:service name="LicenceManager"
interface="tns:LicenceManagerPortType">
<wsdl2:endpoint name="LicenceManagerHTTP"
binding="tns:LicenceManagerHTTPBinding" address="http://www.example.org/"/>
</wsdl2:service>
</wsdl2:description>
-- 
View this message in context: http://www.nabble.com/Unexpected-subelement-tp17979173p18012455.html
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Unexpected subelement

Posted by keith chapman <ke...@gmail.com>.
Hi,

Can you post the ?wsdl2 for your service please.

Thanks,
Keith.

On Thu, Jun 19, 2008 at 9:02 PM, jeusdi <ca...@terra.es> wrote:

>
> I've performed my .NET client and TCPMonitor captures it-->
>
> sending-->
> POST /axis2/services/LicenceManager/CreateLicence HTTP/1.1
> User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client
> Protocol 2.0.50727.1433)
> VsDebuggerCausalityData:
>
> uIDPo8VsEm4OHp1ArwnKCoRNlAoAAAAA4VrC4/NgN0KNLIA26ke5kvAu4mXowHdKp08MsqezbOsACAAA
> Content-Type: application/x-www-form-urlencoded
> Host: 192.168.1.2:8080
> Content-Length: 48
> Expect: 100-continue
> Connection: Keep-Alive
>
> mac=mac&proc_id=p&wind_id=finestra&client=client
>
> It seems that Java client generated with wsdl2Java doesn't send correctly
> the path -->
>
> Java Client sends-->
> /CreateLicence
> and .NEt client sends-->
> /axis2/services/LicenceManager/CreateLicence
> --
> View this message in context:
> http://www.nabble.com/Unexpected-subelement-tp17979173p18011580.html
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org

Re: Unexpected subelement

Posted by jeusdi <ca...@terra.es>.
I've performed my .NET client and TCPMonitor captures it-->

sending-->
POST /axis2/services/LicenceManager/CreateLicence HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client
Protocol 2.0.50727.1433)
VsDebuggerCausalityData:
uIDPo8VsEm4OHp1ArwnKCoRNlAoAAAAA4VrC4/NgN0KNLIA26ke5kvAu4mXowHdKp08MsqezbOsACAAA
Content-Type: application/x-www-form-urlencoded
Host: 192.168.1.2:8080
Content-Length: 48
Expect: 100-continue
Connection: Keep-Alive

mac=mac&proc_id=p&wind_id=finestra&client=client

It seems that Java client generated with wsdl2Java doesn't send correctly
the path -->

Java Client sends-->
/CreateLicence
and .NEt client sends-->
/axis2/services/LicenceManager/CreateLicence
-- 
View this message in context: http://www.nabble.com/Unexpected-subelement-tp17979173p18011580.html
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Unexpected subelement

Posted by jeusdi <ca...@terra.es>.
I send it-->

POST /CreateLicence HTTP/1.1
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
SOAPAction: ""
User-Agent: Axis2
Host: 192.168.1.2:8080
Transfer-Encoding: chunked

22
client=c&proc_id=p&wind_id=w&mac=m
0

And the response is-->
HTTP/1.1 404 /CreateLicence
Server: Apache-Coyote/1.1
Content-Type: text/html;charset=utf-8
Content-Length: 994
Date: Thu, 19 Jun 2008 14:47:12 GMT

<html><head><title>Apache Tomcat/5.5.26 - Error report</title><style><!--H1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
H2
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
H3
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
BODY
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
P
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
{color : black;}A.name {color : black;}HR {color : #525D76;}--></style>
</head><body><h1>HTTP Status 404 - /CreateLicence</h1><HR size="1"
noshade="noshade"><p>type Status report</p><p>message
<u>/CreateLicence</u></p><p>description <u>The requested resource
(/CreateLicence) is not available.</u></p><HR size="1"
noshade="noshade"><h3>Apache Tomcat/5.5.26</h3></body></html>
-- 
View this message in context: http://www.nabble.com/Unexpected-subelement-tp17979173p18011241.html
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Unexpected subelement

Posted by keith chapman <ke...@gmail.com>.
Hi,

I'm not an eclipse expert (cause eclipse is not my preferred IDE) , but here
are the steps.

1. Goto window->show view->other
2. Search for TCP and you will find TCP/IP Monitor
3. Right click->properties
4. click add
5. Set local monitoring port to 8080, host name (The place where the service
is at, if its running locally localhost),  port (the port which the service
is running on)
6. Configure your client to send the request to the TCP monitor instead of
the actual service (for e.g localhost:8080) and the TCP monitor will forward
iot to the actual service. You will see the message  on the TCP monitor.

Thanks,
Keith.

On Thu, Jun 19, 2008 at 7:57 PM, jeusdi <ca...@terra.es> wrote:

>
> Can you tell me any tutorial or example in order to use TCPMonitor plugin
> in
> eclipse?
>
> Thanks for your attention.
> --
> View this message in context:
> http://www.nabble.com/Unexpected-subelement-tp17979173p18010209.html
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org

Re: Unexpected subelement

Posted by jeusdi <ca...@terra.es>.
Can you tell me any tutorial or example in order to use TCPMonitor plugin in
eclipse?

Thanks for your attention.
-- 
View this message in context: http://www.nabble.com/Unexpected-subelement-tp17979173p18010209.html
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Unexpected subelement

Posted by keith chapman <ke...@gmail.com>.
Hi,

Could you use a tool such as TCPMonitor (*http://ws*.apache.org/*commons*/*
tcpmon*/ it comes as eclipse and IDEA plugins too)  and capture the request
and send it to the list please. That will help answer the issue.

Thanks,
Keith.

On Thu, Jun 19, 2008 at 12:18 PM, jeusdi <ca...@terra.es> wrote:

>
> I send StackTrace exception-->
>
> org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException:
> Unexpected subelement proc_id
>        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
>        at
>
> com.grupmicros.www.licencemanager.LicenceManagerMessageReceiverInOut.fromOM(LicenceManagerMessageReceiverInOut.java:149)
>        at
>
> com.grupmicros.www.licencemanager.LicenceManagerMessageReceiverInOut.invokeBusinessLogic(LicenceManagerMessageReceiverInOut.java:43)
>        at
>
> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
>        at
>
> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:100)
>        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
>        at
>
> org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:136)
>        at
>
> org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:130)
>        at
>
> org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processURLRequest(AxisServlet.java:824)
>        at
> org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:253)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>        at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
>        at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>        at
>
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>        at
>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
>        at
>
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>        at
>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
>        at
>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
>        at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
>        at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
>        at
>
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
>        at
>
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
>        at
>
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
>        at
>
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
>        at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.Exception: org.apache.axis2.databinding.ADBException:
> Unexpected subelement proc_id
>        at
>
> com.grupmicros.www.licencemanager.CreateLicence$Factory.parse(CreateLicence.java:748)
>        at
>
> com.grupmicros.www.licencemanager.LicenceManagerMessageReceiverInOut.fromOM(LicenceManagerMessageReceiverInOut.java:136)
>        ... 24 more
> Caused by: org.apache.axis2.databinding.ADBException: Unexpected subelement
> proc_id
>        at
>
> com.grupmicros.www.licencemanager.CreateLicence$Factory.parse(CreateLicence.java:677)
>
> --
> View this message in context:
> http://www.nabble.com/Unexpected-subelement-tp17979173p17998344.html
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org

Re: Unexpected subelement

Posted by jeusdi <ca...@terra.es>.
I send StackTrace exception-->

org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException:
Unexpected subelement proc_id
	at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
	at
com.grupmicros.www.licencemanager.LicenceManagerMessageReceiverInOut.fromOM(LicenceManagerMessageReceiverInOut.java:149)
	at
com.grupmicros.www.licencemanager.LicenceManagerMessageReceiverInOut.invokeBusinessLogic(LicenceManagerMessageReceiverInOut.java:43)
	at
org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
	at
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:100)
	at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
	at
org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:136)
	at
org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:130)
	at
org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processURLRequest(AxisServlet.java:824)
	at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:253)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
	at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
	at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
	at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
	at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.Exception: org.apache.axis2.databinding.ADBException:
Unexpected subelement proc_id
	at
com.grupmicros.www.licencemanager.CreateLicence$Factory.parse(CreateLicence.java:748)
	at
com.grupmicros.www.licencemanager.LicenceManagerMessageReceiverInOut.fromOM(LicenceManagerMessageReceiverInOut.java:136)
	... 24 more
Caused by: org.apache.axis2.databinding.ADBException: Unexpected subelement
proc_id
	at
com.grupmicros.www.licencemanager.CreateLicence$Factory.parse(CreateLicence.java:677)

-- 
View this message in context: http://www.nabble.com/Unexpected-subelement-tp17979173p17998344.html
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org