axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sven Strohschein <nova...@gmx.de>
Subject Third URL parameter can not be processed
Date Tue, 24 Jul 2012 20:51:43 GMT
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>

Mime
View raw message