axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nandika Jayawardana" <jayaw...@gmail.com>
Subject Re: REST Implementation
Date Mon, 09 Jun 2008 03:07:03 GMT
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 <xydinesh@gmail.com> 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: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org


Mime
View raw message