axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rajendra Kumar Miryala" <rajendra-kumar.miry...@capgemini.com>
Subject unexpected subelement exception
Date Mon, 26 May 2008 14:27:48 GMT
Hi,

 

I am getting below exception while receiving response from web-service.

 

This service works fine on JBOS 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(MyWebServ
iceStub.java:8704)

            at
com.test.client.MyWebServiceStub$GetSummaryResponse$Factory.parse(MyWebS
erviceStub.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

 







This message contains information that may be privileged or confidential and is the property
of the Capgemini Group. It is 
intended only for the person to whom it is addressed. If you are not the intended recipient,
you are not authorized to 
read, print, retain, copy, disseminate, distribute, or use this message or any part thereof.
If you receive this message 
in error, please notify the sender immediately and delete all copies of this message.

Mime
View raw message