Hi,

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.

Regards
Nandika






On Sat, Jun 7, 2008 at 1:59 PM, Dinesh Premalal <[EMAIL PROTECTED]> wrote:
> Hi ,
>
>       Please look at echo_rest example.
>
> thanks,
> Dinesh
>
>
> --
> http://nethu.org/



-- 
http://nandikajayawardana.blogspot.com/
WSO2 Inc: http://www.wso2.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to