Guide to choosing between REST vs SOAP services?

后端 未结 4 617
孤街浪徒
孤街浪徒 2020-12-10 14:39

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 deci

4条回答
  •  离开以前
    2020-12-10 15:12

    There is a good flow chart you can use to help you decide between REST vs SOAP.

    Link to flow chart: https://drive.google.com/file/d/0B3zMtAq1Rf-sdVFNdThvNmZWRGc/edit

    Link to article: https://www.linkedin.com/pulse/20140818062318-7933571-soap-vs-rest-flowchart-to-determine-the-right-web-services-protocol-for-your-needs

    The other two factors that I use to make this decision are:

    1) Will clients of the Service require Media Types other than XML (e.g JSON). If yes, then use REST.

    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.

提交回复
热议问题