首页 > 解决方案 > 哪个是当前/旧版:或者

问题描述

我必须使用工具来生成肥皂请求,它可以通过两种方式实现。生成请求以:

<soapenv:Envelope xmlns:ns="http://…" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">

或与:

<soap:Envelope xmlns:ns="http://…" xmlns:soap="http://www.w3.org/2003/05/soap-envelope">

我怀疑一种是当前技术,另一种是传统技术。但由于只有一个在 url 中有类似日期的东西,所以我不知道哪个是。

当前版本中的哪一个是用于新请求的?

标签: soapsoap-clienttemenos-quantum

解决方案


  1. SOAP1.1较旧。

它使用命名空间作为http://schemas.xmlsoap.org/soap/envelope/.

  1. SOAP1.2是最新的。

它使用命名空间作为http://www.w3.org/2003/05/soap-envelope.

有关更多详细信息,请参阅链接。

哪一个应该用于新服务?

SOAP1.2 应该用于新服务,因为它是最新最好的、更干净、更健壮的。尽管现在的趋势是 Restfull 服务比 SOAP 更多。


推荐阅读