Hi,
I am getting below exception while receiving response from web-service.
This service works fine on JBOSS and exception is raised in the Glassfish (v9.1).
I am using Axis2 1.2.
Also using ADB data binding and axis2 code generation tools to generate the WSDL and stub class.
The Element msgID is nillable=”true” (even with minoccurs = “0”). Still service is expecting the value for msgID.
Please help me in resolving the issue.
Exception:
Caused by: java.lang.RuntimeException: Unexpected subelement msgID
at com.test.client.MyWebServiceStub$SummaryResponse$Factory.parse(MyWebServiceStub.java:8704)
at com.test.client.MyWebServiceStub$GetSummaryResponse$Factory.parse(MyWebServiceStub.java:5279)
at com.test.client.MyWebServiceStub.fromOM(MyWebServiceStub.java:26442)
XSD definition in WSDL:
<xs:complexType name="SummaryResponse">
<xs:sequence>
<xs:element name="msgID" nillable="true"
type="xs:string" />
<xs:element name="statusCode" nillable="true"
type="xs:string" />
</xs:sequence>
</xs:complexType>
Thanks In advance
Rajendra
[Message sent by forum member 'javarajendra' (javarajendra)]
http://forums.java.net/jive/thread.jspa?messageID=277477