[
https://issues.apache.org/jira/browse/AXIS2-5341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13648146#comment-13648146
]
Kishanthan Thangarajah commented on AXIS2-5341:
-----------------------------------------------
I'm not getting into an issue as described in this. I tried using the attached
materials but request response are working fine without any issues. Is there
any other specific things we need to take into consideration?
Here is the sample request and response
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ser="http://test.co.uk/temp/recursivetest/all/all/service">
<soapenv:Header/>
<soapenv:Body>
<ser:Request>
<!--Optional:-->
<id>hello</id>
</ser:Request>
</soapenv:Body>
</soapenv:Envelope>
==================================================================================================
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns2:Response
xmlns:ns2="http://test.co.uk/temp/recursivetest/all/all/service">
<responseValue xsi:type="ns1:ResponseBodyContent"
xmlns:ns1="http://test.co.uk/temp/test/all/all"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<responseValue>hello</responseValue>
</responseValue>
</ns2:Response>
</soapenv:Body>
</soapenv:Envelope>
This is for the server side skeleton implementation of method "retrieveValues"
public test.co.uk.recursivetest.all.ResponseBodyContent
retrieveValues(java.lang.String id) {
ResponseBodyContent responseBodyContent = new ResponseBodyContent();
responseBodyContent.setResponseValue(id);
return responseBodyContent;
}
> Recursion within a extension causes an ADBException: Unexpected subelement
> XXXX
> -------------------------------------------------------------------------------
>
> Key: AXIS2-5341
> URL: https://issues.apache.org/jira/browse/AXIS2-5341
> Project: Axis2
> Issue Type: Bug
> Components: adb
> Affects Versions: 1.6.2
> Environment: JBoss 4.3.2, Ubuntu 11.10
> Reporter: Ami Bender
> Attachments: RecursiveTestService-test-client.jar,
> RescursiveTestWSDL.wsdl, ResponseMessage.txt, test.xsd
>
>
> when receiving a response message for the following WSDL, I get a
> "org.apache.axis2.databinding.ADBException: Unexpected subelement XXXX". This
> appears to be caused by a recursive call within a extension
> 2012-06-13 16:10:38,728 ERROR org.apache.axis2.AxisFault:
> org.apache.axis2.databinding.ADBException: Unexpected subelement notes
> at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
> at
> uk.co.test.temp.recursivetest.all.all.service.RecursiveTestServiceStub.fromOM(RecursiveTestServiceStub.java:4188)
> at
> uk.co.test.temp.recursivetest.all.all.service.RecursiveTestServiceStub.retrieveValues(RecursiveTestServiceStub.java:190)
> Relevant bit of Schema
> <xsd:complexType name="ResponseBodyContent">
> <xsd:complexContent>
> <xsd:extension base="tns:AbstratObject">
> <xsd:sequence>
> <xsd:element name="responseValue"
> type="xsd:string"/>
> </xsd:sequence>
> </xsd:extension>
> </xsd:complexContent>
> </xsd:complexType>
> <xsd:complexType name="AbstratObject">
> <xsd:sequence>
> <xsd:element name="notes" type="tns:Note" minOccurs="0"
> maxOccurs="unbounded"/>
> </xsd:sequence>
> </xsd:complexType>
> <xsd:complexType name="Note">
> <xsd:complexContent>
> <xsd:extension base="tns:AbstratObject">
> <xsd:sequence>
> <xsd:element name="temp"
> type="xsd:string" minOccurs="0" maxOccurs="1"/>
> </xsd:sequence>
> </xsd:extension>
> </xsd:complexContent>
> </xsd:complexType>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]