[prev in list] [next in list] [prev in thread] [next in thread] 

List:       axis-user-ja
Subject:    [jira] [Updated] (AXIS2-5379) The third URL parameter can not be processed (REST web service with WS
From:       "Sven Strohschein (JIRA)" <jira () apache ! org>
Date:       2012-07-27 6:55:33
Message-ID: 1439292789.109642.1343372134538.JavaMail.jiratomcat () issues-vm
[Download RAW message or body]


     [ https://issues.apache.org/jira/browse/AXIS2-5379?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel \
]

Sven Strohschein updated AXIS2-5379:
------------------------------------

    Description: 
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>

  was:
Hi,

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>

    
> 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: Critical
> Attachments: HelloWebServiceREST.java, hello-rest.wsdl, 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: \
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more \
information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic