You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Sven Strohschein <no...@gmx.de> on 2012/07/24 22:51:43 UTC

Third URL parameter can not be processed

Hi,

I have developed a simple REST web service with WSDL 2.0 and Axis2. 
There are three URL parameters defined, but the third URL parameter can 
not be processed (ADBException regarding unexpected element). Has 
someone an idea what the reason could be? The first two parameters are 
processed correctly.

The full example code, wsdl, etc. is posted within issue AXIS2-5371 
(https://issues.apache.org/jira/browse/AXIS2-5371) where the original 
problem could get solved.

Thank you in advance. :-)


_URL calls_

http://localhost:8080/services/helloWebServiceREST/getHello?input=test-> 
working
http://localhost:8080/services/helloWebServiceREST/getHello?input=test&second=test2-> 
working
http://localhost:8080/services/helloWebServiceREST/getHello?input=test&second=test2&third=test3-> 
not working ("org.apache.axis2.databinding.ADBException: Unexpected 
subelement second")
http://localhost:8080/services/helloWebServiceREST/getHello?input=test&third=test3-> 
not working ("org.apache.axis2.databinding.ADBException: Unexpected 
subelement input")

_
Request element_

<xsd:element name="hellorequest">
<xsd:complexType>
<xsd:sequence>
<xsd:element minOccurs="0" name="input" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="second" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="third" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>