I found my problem ... is was the result of having a method like this:
Response[] myMethod( Request[] ) Where both Response and Request are derived from the same base class and have different children. The generated wsdl contains definitions for two different base classes but the derivation is incorrect so when the client stub attempts to marshal a valid response it crashes because it expects the wrong tag (using the wrong child). This seems like a bug or a restriction ... Multiple inheritance works except when the input/output of the method collide. Jon <http://www.ca.com/> ________________________________ From: Willard, Jonathan [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2008 5:01 PM To: axis-user@ws.apache.org Cc: [EMAIL PROTECTED] Subject: RE: unexpected subelement exception I believe I am having the same problem which appears to have started when I created a class hierarchy that looks like this: Class one { String valueone ; Class two extends class one { String valuetwo[]; Class three extends class two { String valuethree; Then I created an method that returns an array of valuethree. Everything appears correct in the wsdl and in the stub but when I return what appears to be a valid value (both in the debugger and in tcpmonitor) the client crashes with a org.apache.axis2.databinding.ADBException: Unexpected subelement valueone I have no solution yet but might go back to my two class hierarchy which was previously working. Jon ________________________________ From: Rajendra Kumar Miryala [mailto:[EMAIL PROTECTED] Sent: Friday, May 30, 2008 9:20 AM To: axis-user@ws.apache.org Cc: [EMAIL PROTECTED] Subject: RE: unexpected subelement exception 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>>