Pros & Cons on SOAP vs XML-RPC vs REST

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
jack_indigo
Forum Contributor
Posts: 186
Joined: Sun Jun 08, 2008 11:25 pm

Pros & Cons on SOAP vs XML-RPC vs REST

Post 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.
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

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

Post 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
There are 10 types of people in this world, those who understand binary and those who don't
Post Reply