Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/loops/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Web services 如何查找wsdl版本_Web Services_Soap_Wsdl - Fatal编程技术网

Web services 如何查找wsdl版本

Web services 如何查找wsdl版本,web-services,soap,wsdl,Web Services,Soap,Wsdl,有谁能建议我如何找到web服务公开的wsdl版本- 来自wsdl的代码片段- <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex&qu

有谁能建议我如何找到web服务公开的wsdl版本-
来自wsdl的代码片段-

<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"    
xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" 
xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" 
xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" 
xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" 
xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" 
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" 
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 
xmlns:tns="http://tempuri.org/" 
xmlns:wsa10="http://www.w3.org/2005/08/addressing" 
xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" 
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" 
name="XXXService" targetNamespace="http://tempuri.org/">

我已经浏览了这些网页链接-
根据上面的帖子,它是1.2

但是看看这个-
SoapUI文档说“SoapUI支持WSDL规范的1.1版本”。 因为我的wsdl在SoapUI中成功加载-它可能是版本1.1吗

因此,我不确定我的web服务将公开哪个版本的wsdl(1.1/1.2/2.0)


请提供任何建议。

有两个WSDL版本:1.1和2.0。这些版本的历史记录可以在网站上找到

在该页面上,还可以看到它们之间的差异以及如何识别您正在处理的版本的有用图像:

最简单的方法是查看XML中的根元素:

  • 如果它被称为
    ,那么它就是WSDL1.1
  • 如果它被称为
    ,那么它就是WSDL2.0
您将发现,大多数WSDL都将是1.1版,但如果该技术较新,也可能检索WSDL2.0。例如,请参阅关于检索SOAP web服务的WSDL(如果它提供WSDL)的一些约定的答案