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 <http://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: axis-user@ws.apache.org 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: axis-user@ws.apache.org 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(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. 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>>
<?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <ns:SummaryResponse xmlns:ns="http://service.web.test.com/xsd"> <ns:return> <account xmlns="http://response.test.com/xsd"> <address xmlns="http://vo.test.com/xsd"> <faltNumber xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" /> <houseName>8120475 Test Road</houseName> <houseNumber>8120475</houseNumber> <postCode>125</postCode> </address> <blockCodes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://vo.test.com/xsd" xsi:nil="true" /> <cycleDue xmlns="http://vo.test.com/xsd"> 1 </cycleDue> <dob xmlns="http://vo.test.com/xsd">05-10-1968</dob> <dueAmount xmlns="http://vo.test.com/xsd"> 123.94 </dueAmount> <Name xmlns="http://vo.test.com/xsd"> TestPerson-6441355 </Name> <Number xmlns="http://vo.test.com/xsd"> 36691152705 </Number> <homePhoneNumber xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://vo.test.com/xsd" xsi:nil="true" /> <loanType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://vo.test.com/xsd" xsi:nil="true" /> <officePhoneNumber xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://vo.test.com/xsd" xsi:nil="true" /> </account> <msgDesc xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://response.test.com/xsd" xsi:nil="true" /> <msgID xmlns="http://response.test.com/xsd"> SUCCESS </msgID> <statusCode xmlns="http://response.test.com/xsd"> SUCCESS </statusCode> </ns:return> </ns:SummaryResponse> </soapenv:Body> </soapenv:Envelope>
<?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"> <soapenv:Body> <ns:SummaryResponse xmlns:ns="http://service.web.test.com/xsd"> <ns:return> <account xmlns="http://response.test.com/xsd"> <address xmlns="http://vo.test.com/xsd"> <faltNumber xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"> </faltNumber> <houseName>8120475 Test Road</houseName> <houseNumber>8120475</houseNumber> <postCode>EH125GE</postCode> </address> <blockCodes></blockCodes> <cycleDue>1</cycleDue> <dob>05-10-1968</dob> <dueAmount>123.94</dueAmount> <Name>TestPerson-6441355</Name> <Number>36691152705</Number> <homePhoneNumber xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"> </homePhoneNumber> <loanType></loanType> <officePhoneNumber></officePhoneNumber> <otherPaymentCharges xsi:nil="true"></otherPaymentCharges> </account> <msgId>SUCCESS</msgId> <statusCode>SUCCESS</statusCode> </ns:return> </ns:SummaryResponse> </soapenv:Body> </soapenv:Envelope>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]