On Tue, Jan 24, 2012 at 10:31 PM, Jack Sprat <rexclaim...@yahoo.com> wrote:

> I have a WSDL 1.1 web service with 2 operations.  One is a simple echo
> that I am trying to invoke via REST.  The echo operation should giove back
> the request string in the response.  I can access the operation but cannot
> pass the data in the single element in the inbound request.  I thought it
> should work like this:
>
>
> http://mywebservice.com/test/services/ShipmentTrackingService/echo?echoRequest=test
>

  yes above should work. Did you generate service code from WSDL or did u
deploy a POJO service ? Can you provide your sample ?

  Thanks !

>
> I get a response but there is nothing in the response element.  It works
> fine when invoked via SOAP with soapUI.
>
> The pertinent parts of the WSDL are shown below.
> <wsdl:types><xsd:schema attributeFormDefault="qualified"
> elementFormDefault="qualified" targetNamespace="
> http://mywebservice.com/shipmenttracking"; xmlns:xsd="
> http://www.w3.org/2001/XMLSchema";>pe><xsd:simpleType
> name="EchoRequestType"><xsd:restriction base="xsd:string"><xsd:maxLength
> value="100"/></xsd:restriction></xsd:simpleType> <!-- Echo Request Type
> --><xsd:element name="echoRequest" type="tns:EchoRequestType"/><!-- Echo
> Response Type --><xsd:element name="echoResponse"
> type="xsd:string"/></xsd:schema></wsdl:types><!-- Define SOAP message
> names. --><wsdl:message name="echoRequestMsg"><wsdl:part name="echoRequest"
> element="tns:echoRequest"></wsdl:part></wsdl:message><wsdl:message
> name="echoResponseMsg"><wsdl:part name="echoResponse"
> element="tns:echoResponse"></wsdl:part></wsdl:message>
> </wsdl:message>
>
> Any tips are appreciated.
>
> Thanks.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org
> For additional commands, e-mail: java-user-h...@axis.apache.org
>
>


-- 
Sagara Gunathunga

Blog      - http://ssagara.blogspot.com
Web      - http://people.apache.org/~sagara/
LinkedIn - http://www.linkedin.com/in/ssagara

Reply via email to