Why SOAP can't use HTTP caching mechanisms

前端 未结 3 1885
忘了有多久
忘了有多久 2021-01-02 09:34

I am making a transition from SOAP to REST, and I would like to convince my colleagues that this is a good move. We don\'t need the extra security mechanisms that SOAP can p

3条回答
  •  粉色の甜心
    2021-01-02 09:41

    Another reason could be that SOAP URI is always the soap server, its not determining which resource needs to be cached or what is the resource. So Cache server cannot perform caching of something it don't know. However, REST has URI for each resource (can be multiple URIs for same resource), which helps caching server to perform its job.

    On top of this, as mentioned in other answers only some of HTTP verbs are used for caching like GET, PUT etc (mostly GET).

提交回复
热议问题