我对 SOAP 名称空间感到困惑 [英] I am confused about SOAP namespaces

查看:17
本文介绍了我对 SOAP 名称空间感到困惑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在学习 SOAP 实现,并且对 SOAP 1.2 Envelope 的适当命名空间 URI 有点困惑.

I am learning about SOAP implementation and have become somewhat confused regarding the appropriate namespace URI for a SOAP 1.2 Envelope.

w3c SOAP 规范 指的是 "http://www.w3.org/2003/05/soap-envelope" 命名空间.但是,我看到了其他引用 "http://schemas.xmlsoap.org/soap/envelope/" 命名空间的示例.

The w3c specification for SOAP refers to the "http://www.w3.org/2003/05/soap-envelope" namespace. However, I have seen other examples that refer to the "http://schemas.xmlsoap.org/soap/envelope/" namespace.

在我看来,应该使用一个或另一个命名空间.这两个中哪一个是要使用的正确命名空间 URI?

It seems to me that one or the other namespace should be used. Which of these two is the correct namespace URI to use?

推荐答案

与 SOAP 版本有关.SOAP 1.2 使用 http://www.w3.org/2003/05/soap-envelope 作为命名空间,SOAP 1.1 使用 http://schemas.xmlsoap.org/soap/envelope/.

It is related to the SOAP version. SOAP 1.2 uses http://www.w3.org/2003/05/soap-envelope for the namespace and SOAP 1.1 uses http://schemas.xmlsoap.org/soap/envelope/.

参考http://www.w3.org/TR/soap/ 并查看不同版本规范中的信封部分.

For reference, see http://www.w3.org/TR/soap/ and look at the envelope section in the different version specs.

此外,您可以浏览到每个信封 URL 并检查版本号,以准确了解您使用的是哪个版本的规范.

Also, you can browse to each of those envelope URLs and check the version number to see exactly which version of the spec you are using.

这篇关于我对 SOAP 名称空间感到困惑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆