<p>Does anyone have links to documentation or guides on making the decision between REST vs. SOAP? I understand both of these but am looking for some references on the key decision points, eg, security, which may make you lean towards one or the other.</p>

[{'answer_id': 28970, 'author': 'Rob Cooper', 'author_id': 832, 'author_profile': 'https://Stackoverflow.com/users/832', 'pm_score': 4, 'selected': True, 'text': '<p><a href="http://www.prescod.net/rest/rest_vs_soap_overview/" rel="noreferrer">Google first hit</a> seems pretty comprehensive.</p>\n\n<p>I think the problem here is there are too many advocates of one or the other, may be better of googling and getting more of a handle of the pro\'s/con\'s yourself and making your own decision.</p>\n\n<p>I know that sounds kinda lame, but ultimately these sort of design decisions fall down to the developer/architect working on it, and <strong>99% of the time, the problem domain will be the deciding factor</strong> (or at least it should be), not a guide on the net.</p>\n'}, {'answer_id': 19463563, 'author': 'kapil das', 'author_id': 2041542, 'author_profile': 'https://Stackoverflow.com/users/2041542', 'pm_score': 2, 'selected': False, 'text': "<p>Simple Object Access Protocol (SOAP) standard an XML language defining a message architecture and message formats, is used by Web services it contain a description of the operations. WSDL is an XML-based language for describing Web services and how to access them. will run on SMTP,HTTP,FTP etc. Requires middleware support, well defined mechanisam to define services like WSDL+XSD, WS-Policy SOAP will return XML based data SOAP provide standards for security and reliability</p>\n\n<p>Representational State Transfer (RESTful) web services. they are second generation Web Services. RESTful web services, communicate via HTTP than SOAP-based services and do not require XML messages or WSDL service-API definitions. for REST no middleware is required only HTTP support is needed.WADL Standard, REST can return XML, plain text, JSON, HTML etc</p>\n\n<p>t is easier for many types of clients to consume RESTful web services while enabling the server side to evolve and scale. Clients can choose to consume some or all aspects of the service and mash it up with other web-based services.</p>\n\n<pre><code>REST uses standard HTTP so it is simplerto creating clients, developing APIs \nREST permits many different data formats like XML, plain text, JSON, HTML where  as  SOAP only permits XML.\nREST has better performance and scalability.\nRest and can be cached and SOAP can't \nBuilt-in error handling where SOAP has No error handling\nREST is particularly useful PDA and other mobile devices.\n</code></pre>\n\n<p>REST is services are easy to integrate with existing websites.</p>\n\n<p>SOAP has set of protocols, which provide standards for security and reliability, among other things, and interoperate with other WS conforming clients and servers. SOAP Web services (such as JAX-WS) are useful in handling asynchronous processing and invocation.</p>\n\n<p>For Complex API's SOAP will be more usefull.</p>\n"}, {'answer_id': 24183910, 'author': 'a1ashiish', 'author_id': 1254001, 'author_profile': 'https://Stackoverflow.com/users/1254001', 'pm_score': 0, 'selected': False, 'text': '<p>I Think both REST and SOAP can be used to implement similar functionality, but in general SOAP should be used when a particular feature of SOAP is needed, and the advantages of REST make it generally the best option otherwise. However, both REST and SOAP are often termed &quot;Web services,&quot; and one is often used in place of the other, but they are totally different approaches. REST is an architectural style for building client-server applications. SOAP is a protocol specification for exchanging data between two endpoints.</p>\n<p>I am very much agree with +Rob Cooper in his post. Yes, there are so many advocates. I have listed the <a href="http://www.csharptutorial.in/?p=296" rel="nofollow noreferrer">difference between soap and rest</a>.</p>\n'}, {'answer_id': 45002904, 'author': 'JTech', 'author_id': 583810, 'author_profile': 'https://Stackoverflow.com/users/583810', 'pm_score': 0, 'selected': False, 'text': '<p>There is a good flow chart you can use to help you decide between REST vs SOAP.</p>\n\n<p>Link to flow chart: <a href="https://drive.google.com/file/d/0B3zMtAq1Rf-sdVFNdThvNmZWRGc/edit" rel="nofollow noreferrer">https://drive.google.com/file/d/0B3zMtAq1Rf-sdVFNdThvNmZWRGc/edit</a></p>\n\n<p>Link to article: <a href="https://www.linkedin.com/pulse/20140818062318-7933571-soap-vs-rest-flowchart-to-determine-the-right-web-services-protocol-for-your-needs" rel="nofollow noreferrer">https://www.linkedin.com/pulse/20140818062318-7933571-soap-vs-rest-flowchart-to-determine-the-right-web-services-protocol-for-your-needs</a></p>\n\n<p>The other two factors that I use to make this decision are:</p>\n\n<p>1) Will clients of the Service require Media Types other than XML (e.g JSON). If yes, then use REST.</p>\n\n<p>2) Is the client of the Service always going to be a Application/Server (e.g. not a RIA or AJAX client). If no, this leans towards REST as it is easier to consume REST services when using AJAX.</p>\n'}]
['https://Stackoverflow.com/questions/28950', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/636/']