Are all web services automagically restful web services?

后端 未结 6 1471
抹茶落季
抹茶落季 2021-01-15 12:19

Are all web services through HTTP and not SOAP automagically restful web services?

I have been hearing the term \"Restful web services\" everywhere.. but ain\'t it s

6条回答
  •  醉酒成梦
    2021-01-15 12:57

    No, because to be a REST service, it needs to fulfil certain criteria. See wikipedia

    There is a quote there which might answer your question better than I can:

    SOAP RPC contrast

    SOAP RPC over HTTP, on the other hand, encourages each application designer to define a new and arbitrary vocabulary of nouns and verbs (for example getUsers(), savePurchaseOrder(...)), usually overlaid onto the HTTP POST verb. This disregards many of HTTP's existing capabilities such as authentication, caching and content type negotiation, and may leave the application designer re-inventing many of these features within the new vocabulary.[8] Examples of doing so may include the addition of methods such as getNewUsersSince(Date date), savePurchaseOrder(string customerLogon, string password, ...).

提交回复
热议问题