Can you post relevant parts of WSDL? -Rushikesh
On Fri, May 30, 2008 at 10:17 AM, Rajendra Kumar Miryala < [EMAIL PROTECTED]> wrote: > Can anybody help on the below issue? > > > ------------------------------ > > *From:* Rajendra Kumar Miryala [mailto: > [EMAIL PROTECTED] > *Sent:* Monday, May 26, 2008 7:58 PM > *To:* [email protected] > *Subject:* unexpected subelement exception > > > > 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(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 > > > > > > > > > > > > > > > > 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. > > > > > 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. > >
