Is RESTful faster than SOAP? and when to use one of them?

后端 未结 8 465
清酒与你
清酒与你 2021-01-02 20:58

Duplicate: This is a duplicate of \"What are the best uses of REST services?\" and many others. Please close it.

In web development:

Should

8条回答
  •  误落风尘
    2021-01-02 21:51

    Absent a clear requirement to the contrary, you should always prefer REST to SOAP. There are (rare) times when SOAP provides you with what you need (and those times will get more rare as REST improves, such as having a WADL standard), but in the general case, SOAP is just a whole lot of headache to get you where REST is already standing and waiting.

提交回复
热议问题