You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Ran <ra...@gmail.com> on 2006/12/07 02:28:58 UTC
[Axis2] invoke REST service with url params
Hi,
I have got REST working under http://localhost:8080/axis2/MyService/getEcho
getEcho is an operation of MyService.
How do I invoke getEcho with parameters to pass in input ? such as
http://localhost:8080/axis2/MyService/getEcho?part1=helloREST would call
getEcho with parameter part1 set to helloREST
Thanks,
ran
Re: [Axis2] invoke REST service with url params
Posted by Salma Soleil <sa...@gmail.com>.
If I understand your question correctly, if your operation looks like this:
getEcho(String part1), then your REST request would be as you have
written http://localhost:8080/axis2/MyService/getEcho?part1=helloREST
So multiple parameter as in getEcho(String part1, String part2) would
look like this
http://localhost:8080/axis2/MyService/getEcho?part1=helloREST&part2=helloAgainREST
On 12/6/06, Ran <ra...@gmail.com> wrote:
>
> Hi,
> I have got REST working under
> http://localhost:8080/axis2/MyService/getEcho
> getEcho is an operation of MyService.
>
> How do I invoke getEcho with parameters to pass in input ? such as
> http://localhost:8080/axis2/MyService/getEcho?part1=helloREST would call
> getEcho with parameter part1 set to helloREST
>
> Thanks,
> ran
>
>
>
>