[Phpwm] SOAP/XMLRPC/ Web services question

Elliot Smith elliot at townx.org
Tue Apr 1 20:01:16 BST 2008


Hello David,

David Goodwin wrote:
> Hi,
>
> I'm trying to be lazy and get someone else to answer this question
> without doing a quick and dirty demo... so here goes....
>
> A client needs a remotely callable API for 3rd parties to hook into. To
> me this means Soap or XMLRPC or perhaps SCA/SDO ...
I'd definitely go with REST, using as much of the existing HTTP stack as 
you can. That way you just use HTTP authentication, cookies and sessions 
as per usual; the semantics of status codes, headers etc. replace the 
ugly machinery of SOAP envelopes; XML or JSON are used for data 
representaton (preferably standards-based if possible). I'd only use 
SOAP if you really have to support transactions which cross multiple 
HTTP requests.

"RESTful Web Services" (O'Reilly), if you haven't read it already, 
contains probably most of what you need to know. It's an excellent 
starting point.

Elliot


>
> Anyway, I obviously need some form of authentication to take place (e.g.
> only authorised users can use it, and there can only be so many queries
> in a time period... etc etc)
>
> So... I've made the assumption that cookies/sessions "work as normal"
> when making xmlrpc/soap calls? Is the same also true for SDO stuff?
>
> Any thoughts as to one being better than another ? (soap vs xmlrpc vs 
> SDO).
>
> thanks
> David.
>
>
>

_______________________________________________
Phpwm mailing list
Phpwm at mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/phpwm





More information about the Phpwm mailing list