soap – WSDL单向操作和HTTP状态

首先是上下文 – 想想单向WSDL操作(又名fire and forget,仅输入):

http://www.w3.org/TR/wsdl#_one-way

现在,当服务器返回202 Accepted http状态代码时,假设请求成功是否安全?它在哪里标准化了吗?一些规格的链接将受到高度赞赏.

最佳答案 SOAP 1.2第2部分(附件)描述了SOAP 1.2的HTTP绑定的细节.在[1]中说明:

202 OK

The request has been accepted, but either (a) no response envelope is provided or (b) an envelope representing information related to the request is provided — such envelopes SHOULD be processed using the SOAP Processing model (see SOAP 1.2 Part 1, section SOAP Processing Model).

对于单向操作,(a)就是这种情况.

[1] http://www.w3.org/TR/soap12-part2/#http-reqbindwaitstate

点赞