[wsf-c-dev] [wsf-php] How to handle a rest get with a php service

Nabeel Yoosuf nabeel.yoosuf at gmail.com
Fri Mar 2 20:11:15 PST 2007


I am not an expert in REST, but I want to point out an example. Using Yahoo
API, we can make a REST search for the word "permission" as follows
(Reference [1]).

http://api.search.yahoo.com/WebSearchService/V1/webSearch?appid=YahooDemo&query=persimmon&results=10

(their convension is serviceName/version/methodname?arguments)

I think Yahoo API's are based on PHP. We may be able to support the same
convention in Axis2 (similar to what Yahoo uses):
serviceName/methodName?arguments.

Nabeel.
[1] http://developer.yahoo.com/php/


On 3/2/07, Eran Chinthaka <chinthaka at wso2.com> wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi Nandika,
>
> Operation name being a part of the path name is Axis2/Java convention
> only. There is no requirement for you to follow the same thing. I think
> the best option is to append the operationName also in to the query
> part, but it should be automatic. Meaning, user should not be worried
> about appending that part.
> And in the server side you can rip it accordingly.
>
> - -- Chinthaka
>
> nandika wrote:
> > Hi all,
> >
> > Currently Axis2c handles rest style invocations with GET as follows.
> >
> > The request URL for the REST GET would be as
> > "http://host:port/axis2/services/service_name/operation name ?
> arguments"
> >
> > But in case of  a php service , the .php file will be the service and
> > after that we will have the "?"
> > So we need to come up with a convention on how to pass the operation
> > name along with parameters after "?".
> >
> > Any Ideas will be greatly appreciated.
> >
> > --Nandika
> >
> >
> > _______________________________________________
> > Wsf-c-dev mailing list
> > Wsf-c-dev at wso2.org
> > http://wso2.org/cgi-bin/mailman/listinfo/wsf-c-dev
> >
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.3 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFF6N6GjON2uBzUhh8RAncoAKCpPssS4aBnt7ytmuFYtfIMeODFjQCgrXRN
> h62OiqFqOX+d1GbSfuBiMvM=
> =+esA
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Wsf-c-dev mailing list
> Wsf-c-dev at wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/wsf-c-dev
>



-- 
http://www.cs.purdue.edu
http://mohamednabeel.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wso2.org/pipermail/wsf-c-dev/attachments/20070302/b10532ee/attachment.htm


More information about the Wsf-c-dev mailing list