tags:

views:

1900

answers:

3

I writing here to clear my and may be many people 's misconceptions about them...

first my question is:

SOAP is xml based protocol REST is web based architectural web service JSON is standard but not xml based

how can we compare them???? as trio are different things

2nd question is:

is REST response xml based only or json based also??? if it is also xml based then how can we consider it different then SOAP and even faster...

3rd question is:

how can we apply authentication header on REST and jSON based web services (any reference with description)

4th question is:

what is SOA and if some application contains some web services, can we consider it SOA based means what are SOA specs...

your response would be appreciated :)

+3  A: 

Please spend a couple of minutes searching on SO first: http://stackoverflow.com/search?q=soap+vs+REST+vs+JSON+in+SOA.

John Saunders
it doesn't satisfy me :( can you cater answer specifically...
Muhammad Adnan
@Muhammad If you are unable to learn without a direct answer to your specific question, then you are in the wrong field. There are hundreds of questions on SO that address the subjects you raise.
Darrel Miller
@Muhammad: The reasons to spend a little time searching are 1) You won't waste our time answering questions that have already been answered, and 2) You won't waste the time of those who come after you with reading the same question in different forms, and 3) You might actually learn how to learn, which is a powerful tool to have at your disposal.
John Saunders
@Darrel Miller and @John Saunders,that would better if you reply the issues than advicing. As I as well have same question and I m not finding its correct answer.@Muhammad is not clear he is asking. If you dont want to reply you can leave but you should not try to be an adviser.
haansi
@haansi: why should I not advise? You need not accept my advice, but I will advise whoever and however I choose. Thanks for explaining your downvote.
John Saunders
A: 

For 3 and 4:

I think that SOA should relay on SOAP (lots of security modes), REST and JSON is more for communicating to the clients (http security).

Clients -json and rest-> httpserver (i.e.: asp.net)--> SOAP --> your ESB.

At the end you can discover the services easily with SOAP, and is easier for developing, you do not have to fight with xmls.

Pablo Castilla
A: 

The main advantages of REST web services are:

* Lightweight – not a lot of extra xml markup
* Human Readable Results
* Easy to build – no toolkits required

SOAP also has some advantages:

* Easy to consume – sometimes
* Rigid – type checking, adheres to a contract
* Development tools

via SOAP vs. REST

Taranfx