Rajendra, I've seen this error while working with Axis 1.4. This error normally occurs when the SOAP message contains an element which is *not present in the WSDL*. I don't think it has anything to do with server. I would advise you to run wsdl2java once again and deploy the same war on both the servers. The other possibility could be *different set of jars on both servers*, esp. related to xml and SOAP.
As I see the portion of WSDL you posted in the first msg, it doesn't even contain definition of 'account' element that's found in SOAP messages that you've posted. So, it looks like a WSDL problem in general. Correct me if I'm pointing to a wrong direction. regards, - Rushikesh On Fri, May 30, 2008 at 3:20 PM, Rajendra Kumar Miryala < [EMAIL PROTECTED]> wrote: > Hi, > > > > Thanks for your response. > > > > On further analysis on this problem I find that response xml's getting from > two servers are different (JBOSS and glassfish). > > > > In Jboss we are getting namespace for all elements properly and in > glassfish does not provide the namespace, because of which unexpected sub > element exception is raised. > > > > Please help me in getting proper response from glassfish with namespaces. > I had attached the SOAP response messages and wsdl along with this mail. > > > > Let me know if you need anymore information. > > > > > > > > > > _________________________________________________________ > > M V Rajendra Kumar / *Capgemini "India" **/* Hyderabad > GE-UK > Com1: +040-23125000-25072/ Mobile: 9959811162 www.capgemini.com > #5,Software Units Layout,Madhapur,Hyderabad-82 > *Together. Free your energies* > _________________________________________________________ > > *Capgemini is a trading name used by the Capgemini Group of companies > which includes Capgemini "Country legal", a company registered in "Country" > (number xxxxx) whose registered office is at "insert head office address". > * > > ------------------------------ > > *From:* Rushikesh Thakkar [mailto:[EMAIL PROTECTED] > *Sent:* Friday, May 30, 2008 4:44 PM > *To:* [email protected] > *Subject:* Re: unexpected subelement exception > > > > 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. > > > > > > > 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. > >
<<image001.gif>>
<<image002.gif>>
