Page 1 of 1

Pros & Cons on SOAP vs XML-RPC vs REST

Posted: Mon Jun 15, 2009 4:07 pm
by jack_indigo
#1

I saw this on a job posting:

"Our ideal candidate will be someone familiar with the pros and cons of SOAP vs XML-RPC vs REST."

Okay, I'm game. I don't deal in that stuff most of the time and I guess I better crack open the books. As a guide, what do you think are the pros and cons of each for a given situation?

#2

The listing also said this:

"Someone who knows what JSON stands for, and why it’s cool."

I wonder what would happen if the writer of that job listing were to look at jQuery Malsup Form API. You can do AJAX now without needing to create client-side JSON stuff. You just pass the data back as a regular form POST via AJAX and PHP can start reading $_POST. As for posting responses back, I guess maybe JSON would be more suitable versus other formats.

Re: Pros & Cons on SOAP vs XML-RPC vs REST

Posted: Tue Jun 16, 2009 2:20 am
by VladSun
jack_indigo wrote:#2

The listing also said this:

"Someone who knows what JSON stands for, and why it’s cool."

I wonder what would happen if the writer of that job listing were to look at jQuery Malsup Form API. You can do AJAX now without needing to create client-side JSON stuff. You just pass the data back as a regular form POST via AJAX and PHP can start reading $_POST. As for posting responses back, I guess maybe JSON would be more suitable versus other formats.
That's true only if you send only one item per request.
viewtopic.php?f=19&t=93937