Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

REST vs SOAP - Is SOAP really more secure than REST?

Tags:

rest

http

soap

I am not an expert in SOAP, but from my knowledge SOAP is just an HTTP request formatted in XML in order to supply structured data.

I need to implement a simple API with a list of parameters.

I proposed using a simple REST interface, but I have been told that SOAP is more secure.


Any ideas on this topic?

like image 305
RadiantHex Avatar asked Sep 28 '10 14:09

RadiantHex


People also ask

What is the biggest advantage of REST over SOAP?

Benefits of REST Over SOAPREST allows a greater variety of data formats, whereas SOAP only allows XML. Coupled with JSON (which typically works better with data and offers faster parsing), REST is generally considered easier to work with. Thanks to JSON, REST offers better support for browser clients.

Why REST is more secure?

REST Security That means when an application sends and retrieves a message from a REST API using HTTPS, the message is secured only for the HTTPS connection. Meaning, the message is secured only during the transport between the client and the service.

Why SOAP API is secure?

Soap API and REST APISOAP's built-in WS-Security standard uses XML Encryption, XML Signature, and SAML tokens to deal with transactional messaging security considerations. SOAP also supports OASIS and W3C recommendations.


1 Answers

My guess would be that you have been told SOAP is more secure because of the existence of various standards that relate to security:

http://en.wikipedia.org/wiki/WS-Trust
http://en.wikipedia.org/wiki/WS-Security
http://en.wikipedia.org/wiki/WS-SecureConversation
http://en.wikipedia.org/wiki/WS-Federation

Most REST implementations are based on HTTP which has Basic Auth, Digest Auth, SSL and OAuth as security related specs. Which is more secure is topic that is could be debated forever!

An important question is does your service need something more secure than online banks use? HTTPS seems to be sufficient for them, and they are a pretty big target.

like image 60
Darrel Miller Avatar answered Oct 20 '22 22:10

Darrel Miller