How Soap supports asynchronous call while Rest does not?

后端 未结 3 1122
轮回少年
轮回少年 2020-12-30 14:22

I was going thru Soap vs Rest on net and found most of them says Soap supports asynchronous call while Rest does not but did not get any concrete example of that. Can anybod

3条回答
  •  甜味超标
    2020-12-30 15:00

    SOAP defines a reply approach that allows for asynchronous computing, like a callback mechanism. You can achieve the same with REST but there is no specification for it, so you would have to build it yourself.

    Here is an example using JAX-WS 2.0 demonstrating the feature.

    I found useful information in Wikipedia WS-Addressing, which has a link for this W3C Specification.

    In the past I also developed in SAP ESB designer which allowed for asynchronous service interface methods. Although I never used that feature, that tool was fully compliant with SOAP specification and I am pretty sure it would work just like the Java example above, since the WSDL was used to generate JAX-WS server based. If I have time next week I will use that option to so see what happens and post it here.

    You should also check this answer which address pertinent aspects of this approach.

提交回复
热议问题