Did you use code first approach ? if so provide the complete WSDL file.

Thanks !

On Tue, Jul 10, 2012 at 6:42 PM, Jack Sprat <rexclaim...@yahoo.com> wrote:
> Can someone please answer my question below?
>
> Thanks!
>
>
> ________________________________
> From: Jack Sprat <rexclaim...@yahoo.com>
> To: "axis-u...@ws.apache.org" <axis-u...@ws.apache.org>
> Sent: Thursday, July 5, 2012 5:09 PM
> Subject: [Axis2] REST web service
>
> I have a WSDL 1.1 web service with 2 operations.  The service was generated 
> from the WSDL with Axis2 1.6.1.  One operation is a simple echo that I am 
> trying to invoke via REST.  The echo operation should return the request 
> string in the response.  I can access the operation but nothing comes back in 
> the response.  I thought it should work like this:
> http://mywebservice.com/test/services/ShipmentTrackingService/echo?echoRequest=test
>
> I get a response but there is nothing in the response element.  It works fine 
> when invoked via SOAP with soapUI.  The response I get is:
> <ship:echoResponse xmlns:ship=http://mynamespace.com/shipmenttracking; />
>
> The pertinent parts of the WSDL are shown below.
>
> <wsdl:types>
> <xsd:schema attributeFormDefault="qualified" elementFormDefault="qualified" 
> targetNamespace="http://mywebservice.com/shipmenttracking%22; 
> xmlns:xsd="http://www.w3.org/2001/XMLSchema%22%3Epe%3E%3Cxsd: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>
>
> Any help is appreciated.
>
> Thanks.
> J
>
> ---------------------------------------------------------------------
> 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

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org
For additional commands, e-mail: java-user-h...@axis.apache.org

Reply via email to