axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nandika Jayawardana" <>
Subject Re: REST Implementation
Date Mon, 09 Jun 2008 03:07:03 GMT

To understand how to convert a soap method to support rest, you need
to look at the echo service example.

You can define a unique url for each method in your service in
services.xml and the HTTP method used to invoke that method.
For example if the operation name is "echoString" then you can define
the HTTP method and the url for "echoString" method using the two
parameters "RESTMethod" and "RESTLocation" as follows.
 <parameter name="RESTMethod">POST</parameter>
 <parameter name="RESTLocation">a/b</parameter>

Now echoString method can be invoked by using a HTTP POST. If the url
of the echo service is "http://localhost/services/echo", then the url
for echoString method will be "http://localhost/services/echo/a/b".
Note that you can define only one HTTP method for an operation.


On Sat, Jun 7, 2008 at 1:59 PM, Dinesh Premalal <> wrote:
> Hi ,
>       Please look at echo_rest example.
> thanks,
> Dinesh
> --

WSO2 Inc:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message