Re: Axis2: REST-Style with HTTP-GET - how to add parameters?

2006-05-26 Thread Christoph Miksovic
Thank you for your help!
But how can I configure Axis2 to generate a WSDL that does have a GET
binding?

Thank you very much.
Cheers,
Christoph



   
 Anne Thomas  
 Manes
 [EMAIL PROTECTED]  To
 maxis-user@ws.apache.org 
cc
 19.05.2006 21:44  
   Subject
   Re: Axis2: REST-Style with HTTP-GET
 Please respond to - how to add parameters?
 axis-user 
   
   
   
   
   




Your WSDL doesn't have a GET binding (just POST).

On 5/18/06, Christoph Miksovic [EMAIL PROTECTED]  wrote:
  Hello everybody,

  I have problems acessing the Axis2SampleDocLitService Sample using
  REST-Style with HTTP-GET.
  Can you please tell me what is the correct way to set the parameter?

  The operation signature is echoString(String echoStringParam) (see WSDL
  File below).

  I tried several things like for instance

  
http://localhost:8080/axis2/rest/Axis2SampleDocLitService/echoString?echoStringParam=hello


  But I always get an error as follows:
  org.apache.axis2.AxisFault: Data binding error; nested exception is:
java.lang.RuntimeException: Data binding error; nested exception
  is:
org.apache.axis2.AxisFault: Data binding error; nested exception
  is:
java.lang.RuntimeException: Data binding error

  
org.apache.axis2.transport.http.util.RESTUtil.processGetRequest(RESTUtil.java:141)


  org.apache.axis2.transport.http.AxisRESTServlet.doGet(AxisRESTServlet.java
 :36)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


  Thanks a lot for any help!
  Cheers,
  Christoph


  
_

  WSDL File, generated by Axis2 Engine:
  wsdl:definitions targetNamespace=
  http://userguide.axis2.apache.org/Axis2SampleDocLit;
  -
wsdl:types
  -
schema targetNamespace=http://userguide.axis2.apache.org/xsd;
  elementFormDefault=qualified attributeFormDefault=unqualified
  -
complexType name=ArrayOfstring_literal
  -
sequence
  element type=string name=string maxOccurs=unbounded/
  /sequence
  /complexType
  -
complexType name=SOAPStruct
  -
all
  element type=float name=varFloat/
  element type=int name=varInt/
  element type=string name=varString/
  /all
  /complexType
  element type=string name=echoStringParam/
  element type=int name=echoIntParam/
  element type=string name=echoStringReturn/
  element type=xsd1:ArrayOfstring_literal name=echoStringArrayParam/
  element type=xsd1:ArrayOfstring_literal name=echoStringArrayReturn/

  element type=xsd1:SOAPStruct name=echoStructParam/
  element type=xsd1:SOAPStruct name=echoStructReturn/
  /schema
  /wsdl:types
  -
wsdl:message name=echoStringArray
  wsdl:part element=xsd1:echoStringArrayParam name=part1/
  /wsdl:message
  -
wsdl:message name=echoStringArrayResponse
  wsdl:part element=xsd1:echoStringArrayReturn name=part1/
  /wsdl:message
  -
wsdl:message name=echoString
  wsdl:part element=xsd1:echoStringParam name=part1/
  /wsdl:message
  -
wsdl:message name=echoStringResponse
  wsdl:part element=xsd1:echoStringReturn name=part1/
  /wsdl:message
  -
wsdl:message name=echoStruct
  wsdl:part element=xsd1:echoStructParam name=part1/
  /wsdl:message
  -
wsdl:message name=echoStructResponse
  wsdl:part element=xsd1:echoStructReturn name=part1/
  /wsdl:message
  -
wsdl:portType name=Axis2SampleDocLitServicePortType
  -
wsdl:operation name=echoStringArray
  wsdl:input message=tns:echoStringArray/
  wsdl:output message=tns:echoStringArrayResponse/
  /wsdl:operation
  -
wsdl:operation name=echoString
  wsdl:input message=tns:echoString/
  wsdl:output message=tns:echoStringResponse/
  /wsdl:operation
  -
wsdl:operation name=echoStruct
  wsdl:input message=tns:echoStruct/
  wsdl:output message=tns:echoStructResponse/
  /wsdl:operation
  /wsdl:portType
  -
wsdl:binding type=tns:Axis2SampleDocLitServicePortType
  name=Axis2SampleDocLitServiceSOAP11Binding
  

Re: Axis2: REST-Style with HTTP-GET - how to add parameters?

2006-05-19 Thread Anne Thomas Manes
Your WSDL doesn't have a GET binding (just POST).On 5/18/06, Christoph Miksovic [EMAIL PROTECTED]
 wrote:Hello everybody,I have problems acessing the Axis2SampleDocLitService Sample using
REST-Style with HTTP-GET.Can you please tell me what is the correct way to set the parameter?The operation signature is echoString(String echoStringParam) (see WSDLFile below).I tried several things like for instance
http://localhost:8080/axis2/rest/Axis2SampleDocLitService/echoString?echoStringParam=helloBut I always get an error as follows:
org.apache.axis2.AxisFault: Data binding error; nested exception is:java.lang.RuntimeException: Data binding error; nested exception is:org.apache.axis2.AxisFault: Data binding error; nested exception is:
java.lang.RuntimeException: Data binding errororg.apache.axis2.transport.http.util.RESTUtil.processGetRequest(RESTUtil.java:141)org.apache.axis2.transport.http.AxisRESTServlet.doGet(AxisRESTServlet.java
:36)javax.servlet.http.HttpServlet.service(HttpServlet.java:689)javax.servlet.http.HttpServlet.service(HttpServlet.java:802)Thanks a lot for any help!Cheers,Christoph_
WSDL File, generated by Axis2 Engine:wsdl:definitions targetNamespace=http://userguide.axis2.apache.org/Axis2SampleDocLit
-wsdl:types-schema targetNamespace=http://userguide.axis2.apache.org/xsdelementFormDefault=qualified attributeFormDefault=unqualified
-complexType name=ArrayOfstring_literal-sequenceelement type=string name=string maxOccurs=unbounded//sequence
/complexType-complexType name=SOAPStruct-allelement type=float name=varFloat/element type=int name=varInt/
element type=string name=varString//all/complexTypeelement type=string name=echoStringParam/element type=int name=echoIntParam/
element type=string name=echoStringReturn/element type=xsd1:ArrayOfstring_literal name=echoStringArrayParam/element type=xsd1:ArrayOfstring_literal name=echoStringArrayReturn/
element type=xsd1:SOAPStruct name=echoStructParam/element type=xsd1:SOAPStruct name=echoStructReturn//schema/wsdl:types-
wsdl:message name=echoStringArraywsdl:part element=xsd1:echoStringArrayParam name=part1//wsdl:message-wsdl:message name=echoStringArrayResponse
wsdl:part element=xsd1:echoStringArrayReturn name=part1//wsdl:message-wsdl:message name=echoStringwsdl:part element=xsd1:echoStringParam name=part1/
/wsdl:message-wsdl:message name=echoStringResponsewsdl:part element=xsd1:echoStringReturn name=part1//wsdl:message-wsdl:message name=echoStruct
wsdl:part element=xsd1:echoStructParam name=part1//wsdl:message-wsdl:message name=echoStructResponsewsdl:part element=xsd1:echoStructReturn name=part1/
/wsdl:message-wsdl:portType name=Axis2SampleDocLitServicePortType-wsdl:operation name=echoStringArraywsdl:input message=tns:echoStringArray/
wsdl:output message=tns:echoStringArrayResponse//wsdl:operation-wsdl:operation name=echoStringwsdl:input message=tns:echoString/
wsdl:output message=tns:echoStringResponse//wsdl:operation-wsdl:operation name=echoStructwsdl:input message=tns:echoStruct/
wsdl:output message=tns:echoStructResponse//wsdl:operation/wsdl:portType-wsdl:binding type=tns:Axis2SampleDocLitServicePortTypename=Axis2SampleDocLitServiceSOAP11Binding
soap:binding style=document transport=http://schemas.xmlsoap.org/soap/http/-wsdl:operation name=echoStringArray
soap:operation style=document soapAction=echoStringArray/-wsdl:inputsoap:body namespace=
http://userguide.axis2.apache.org/Axis2SampleDocLituse=literal//wsdl:input-wsdl:outputsoap:body namespace=
http://userguide.axis2.apache.org/Axis2SampleDocLituse=literal//wsdl:output/wsdl:operation-wsdl:operation name=echoStringsoap:operation style=document soapAction=echoString/
-wsdl:inputsoap:body namespace=http://userguide.axis2.apache.org/Axis2SampleDocLituse=literal/
/wsdl:input-wsdl:outputsoap:body namespace=http://userguide.axis2.apache.org/Axis2SampleDocLituse=literal/
/wsdl:output/wsdl:operation-wsdl:operation name=echoStructsoap:operation style=document soapAction=echoStruct/-wsdl:input
soap:body namespace=http://userguide.axis2.apache.org/Axis2SampleDocLituse=literal//wsdl:input-
wsdl:outputsoap:body namespace=http://userguide.axis2.apache.org/Axis2SampleDocLituse=literal//wsdl:output
/wsdl:operation/wsdl:binding-wsdl:binding type=tns:Axis2SampleDocLitServicePortTypename=Axis2SampleDocLitServiceSOAP12Bindingsoap12:binding style=document transport=
http://schemas.xmlsoap.org/soap/http/-wsdl:operation name=echoStringArraysoap12:operation style=document soapAction=echoStringArray/
-wsdl:inputsoap12:body namespace=http://userguide.axis2.apache.org/Axis2SampleDocLit use=literal/
/wsdl:input-wsdl:outputsoap12:body namespace=http://userguide.axis2.apache.org/Axis2SampleDocLit use=literal/
/wsdl:output/wsdl:operation-wsdl:operation name=echoStringsoap12:operation style=document soapAction=echoString/-wsdl:input
soap12:body namespace=http://userguide.axis2.apache.org/Axis2SampleDocLit use=literal//wsdl:input-

Axis2: REST-Style with HTTP-GET - how to add parameters?

2006-05-18 Thread Christoph Miksovic
Hello everybody,

I have problems acessing the Axis2SampleDocLitService Sample using
REST-Style with HTTP-GET.
Can you please tell me what is the correct way to set the parameter?

The operation signature is echoString(String echoStringParam) (see WSDL
File below).

I tried several things like for instance

http://localhost:8080/axis2/rest/Axis2SampleDocLitService/echoString?echoStringParam=hello

But I always get an error as follows:
org.apache.axis2.AxisFault: Data binding error; nested exception is:
  java.lang.RuntimeException: Data binding error; nested exception is:
  org.apache.axis2.AxisFault: Data binding error; nested exception is:
  java.lang.RuntimeException: Data binding error

org.apache.axis2.transport.http.util.RESTUtil.processGetRequest(RESTUtil.java:141)

org.apache.axis2.transport.http.AxisRESTServlet.doGet(AxisRESTServlet.java:36)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


Thanks a lot for any help!
Cheers,
Christoph


_
WSDL File, generated by Axis2 Engine:
wsdl:definitions targetNamespace=
http://userguide.axis2.apache.org/Axis2SampleDocLit;
-
  wsdl:types
-
  schema targetNamespace=http://userguide.axis2.apache.org/xsd;
elementFormDefault=qualified attributeFormDefault=unqualified
-
  complexType name=ArrayOfstring_literal
-
  sequence
element type=string name=string maxOccurs=unbounded/
/sequence
/complexType
-
  complexType name=SOAPStruct
-
  all
element type=float name=varFloat/
element type=int name=varInt/
element type=string name=varString/
/all
/complexType
element type=string name=echoStringParam/
element type=int name=echoIntParam/
element type=string name=echoStringReturn/
element type=xsd1:ArrayOfstring_literal name=echoStringArrayParam/
element type=xsd1:ArrayOfstring_literal name=echoStringArrayReturn/
element type=xsd1:SOAPStruct name=echoStructParam/
element type=xsd1:SOAPStruct name=echoStructReturn/
/schema
/wsdl:types
-
  wsdl:message name=echoStringArray
wsdl:part element=xsd1:echoStringArrayParam name=part1/
/wsdl:message
-
  wsdl:message name=echoStringArrayResponse
wsdl:part element=xsd1:echoStringArrayReturn name=part1/
/wsdl:message
-
  wsdl:message name=echoString
wsdl:part element=xsd1:echoStringParam name=part1/
/wsdl:message
-
  wsdl:message name=echoStringResponse
wsdl:part element=xsd1:echoStringReturn name=part1/
/wsdl:message
-
  wsdl:message name=echoStruct
wsdl:part element=xsd1:echoStructParam name=part1/
/wsdl:message
-
  wsdl:message name=echoStructResponse
wsdl:part element=xsd1:echoStructReturn name=part1/
/wsdl:message
-
  wsdl:portType name=Axis2SampleDocLitServicePortType
-
  wsdl:operation name=echoStringArray
wsdl:input message=tns:echoStringArray/
wsdl:output message=tns:echoStringArrayResponse/
/wsdl:operation
-
  wsdl:operation name=echoString
wsdl:input message=tns:echoString/
wsdl:output message=tns:echoStringResponse/
/wsdl:operation
-
  wsdl:operation name=echoStruct
wsdl:input message=tns:echoStruct/
wsdl:output message=tns:echoStructResponse/
/wsdl:operation
/wsdl:portType
-
  wsdl:binding type=tns:Axis2SampleDocLitServicePortType
name=Axis2SampleDocLitServiceSOAP11Binding
soap:binding style=document transport=
http://schemas.xmlsoap.org/soap/http/
-
  wsdl:operation name=echoStringArray
soap:operation style=document soapAction=echoStringArray/
-
  wsdl:input
soap:body namespace=http://userguide.axis2.apache.org/Axis2SampleDocLit;
use=literal/
/wsdl:input
-
  wsdl:output
soap:body namespace=http://userguide.axis2.apache.org/Axis2SampleDocLit;
use=literal/
/wsdl:output
/wsdl:operation
-
  wsdl:operation name=echoString
soap:operation style=document soapAction=echoString/
-
  wsdl:input
soap:body namespace=http://userguide.axis2.apache.org/Axis2SampleDocLit;
use=literal/
/wsdl:input
-
  wsdl:output
soap:body namespace=http://userguide.axis2.apache.org/Axis2SampleDocLit;
use=literal/
/wsdl:output
/wsdl:operation
-
  wsdl:operation name=echoStruct
soap:operation style=document soapAction=echoStruct/
-
  wsdl:input
soap:body namespace=http://userguide.axis2.apache.org/Axis2SampleDocLit;
use=literal/
/wsdl:input
-
  wsdl:output
soap:body namespace=http://userguide.axis2.apache.org/Axis2SampleDocLit;
use=literal/
/wsdl:output
/wsdl:operation
/wsdl:binding
-
  wsdl:binding type=tns:Axis2SampleDocLitServicePortType
name=Axis2SampleDocLitServiceSOAP12Binding
soap12:binding style=document transport=
http://schemas.xmlsoap.org/soap/http/
-
  wsdl:operation name=echoStringArray
soap12:operation style=document soapAction=echoStringArray/
-
  wsdl:input
soap12:body namespace=http://userguide.axis2.apache.org/Axis2SampleDocLit
 use=literal/
/wsdl:input
-
  wsdl:output
soap12:body namespace=http://userguide.axis2.apache.org/Axis2SampleDocLit