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

后端 未结 8 467
清酒与你
清酒与你 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:40

    In my experience, SOAP adds some overhead that you can avoid by making a RESTful service. That being said, in your decision, you should consider your audience. If you are expecting to have a large variety of outside-world consumers of your service, I would recommend SOAP, because there are a lot of tools that automatically generate a programmatic interface to it.

    Some web services, like PayPal, offer multiple alternatives, so you could also consider choosing both.

提交回复
热议问题