Why is it not a good idea to use SOAP for communicating with the front end (ie web browser)?

后端 未结 4 520
逝去的感伤
逝去的感伤 2020-12-29 22:33

Why is it not a good idea to use SOAP for communicating with the front end? For example, a web browser using JavaScript.

4条回答
  •  萌比男神i
    2020-12-29 23:31

    Because SOAP reinvents a lot of the HTTP wheel in its quest for protocol-independence. What's the point if you know you're going to serve the response over HTTP anyway (since your client is a web browser)?

    UPDATE: I second gizmo's (implied) suggestion of JSON.

提交回复
热议问题