[ https://issues.apache.org/jira/browse/AXIS2-5379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13643515#comment-13643515 ]
Kishanthan Thangarajah commented on AXIS2-5379: ----------------------------------------------- I tried to reproduce this with one of my sample. But the above mentioned scenario is working fine for me. I tested three, four and even five different input parameter methods in here. All working fine. I'm attaching the sample I used here. The URL form which takes five different input parameter in this sample will be like : http://localhost:8080/axis2/services/StudentService/addSubjects?name=kishanthan&s1=chemistry&s2=physics&s3=mathematics&s4=statistics The relevant schema generated for this is <xs:element name="addSubjects"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" name="name" nillable="true" type="xs:string"/> <xs:element minOccurs="0" name="s1" nillable="true" type="xs:string"/> <xs:element minOccurs="0" name="s2" nillable="true" type="xs:string"/> <xs:element minOccurs="0" name="s3" nillable="true" type="xs:string"/> <xs:element minOccurs="0" name="s4" nillable="true" type="xs:string"/> </xs:sequence> </xs:complexType> </xs:element> > The third URL parameter can not be processed (REST web service with WSDL 2.0) > ----------------------------------------------------------------------------- > > Key: AXIS2-5379 > URL: https://issues.apache.org/jira/browse/AXIS2-5379 > Project: Axis2 > Issue Type: Bug > Components: wsdl > Affects Versions: 1.6.2 > Reporter: Sven Strohschein > Priority: Blocker > Attachments: hello-rest.wsdl, HelloWebServiceREST.java, > RESTSample_1.0.0.aar, services.xml > > > I have developed a simple "hello world" 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). The first two > parameters are processed correctly. > I could not get an answer via the axis2 mailing list regarding this problem ( > http://mail-archives.apache.org/mod_mbox/axis-java-user/201207.mbox/%3C500F0ADF.1050108%40gmx.de%3E > ), could not find any examples, tutorials or documentation for a REST web > service with WSDL 2.0 and more than two parameters. > The full example code, wsdl, etc. is attached to this issue. > 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> -- 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: java-dev-unsubscr...@axis.apache.org For additional commands, e-mail: java-dev-h...@axis.apache.org