Web services 检测web服务器类型

Web services 检测web服务器类型,web-services,Web Services,试图了解在下面的web服务请求中使用了哪种绑定 - <s:Envelope xmlns:a="http://www.w3.org/2005/08/addressing" xmlns:s="http://www.w3.org/2003/05/soap-envelope"> - <s:Header> <a:Action s:mustUnderstand="1">http://tempuri.org/IService1/GetData</a:Action&

试图了解在下面的web服务请求中使用了哪种绑定

- <s:Envelope xmlns:a="http://www.w3.org/2005/08/addressing" xmlns:s="http://www.w3.org/2003/05/soap-envelope">
- <s:Header>
  <a:Action s:mustUnderstand="1">http://tempuri.org/IService1/GetData</a:Action> 
  <a:MessageID>urn:uuid:e9a57d19-db08-4566-92c7-c3a340ce9dc5</a:MessageID> 
  <a:To s:mustUnderstand="1">http://10.1.2.222:8733/Design_Time_Addresses/WcfServiceLibrary1/Service1/mex</a:To> 
  </s:Header>
- <s:Body>
- <GetData xmlns="http://tempuri.org/">
  <value>4</value> 
  </GetData>
  </s:Body>
  </s:Envelope>
-
- 
http://tempuri.org/IService1/GetData 
urn:uuid:e9a57d19-db08-4566-92c7-c3a340ce9dc5
http://10.1.2.222:8733/Design_Time_Addresses/WcfServiceLibrary1/Service1/mex 
- 
- 
4.
我想这不是SOAP请求。但那是什么

UPD

WSDL:


根据WSDL,它应该是SOAP。但是哪一个是1.1还是1.2


如何在嗅探请求文本时检测请求类型?

以上是有效的SOAP请求。它的头显示它正在使用WS-Addressing()


正如您可以检查的那样,WSDL文件绑定是基于HTTP的。

这是一个SOAP请求。您可以共享wsdl文件来标识绑定。我已经用wsdl更新了我的问题
<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:tns="http://tempuri.org/" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Service1" targetNamespace="http://tempuri.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
  <wsdl:types>
    <xsd:schema targetNamespace="http://tempuri.org/Imports">
      <xsd:import schemaLocation="" namespace="http://tempuri.org/" />
      <xsd:import schemaLocation="" namespace="http://schemas.microsoft.com/2003/10/Serialization/" />
    </xsd:schema>
  </wsdl:types>
  <wsdl:message name="IService1_GetData_InputMessage">
    <wsdl:part name="parameters" element="tns:GetData" />
  </wsdl:message>
  <wsdl:message name="IService1_GetData_OutputMessage">
    <wsdl:part name="parameters" element="tns:GetDataResponse" />
  </wsdl:message>
  <wsdl:portType name="IService1">
    <wsdl:operation name="GetData">
      <wsdl:input wsaw:Action="http://tempuri.org/IService1/GetData" message="tns:IService1_GetData_InputMessage" />
      <wsdl:output wsaw:Action="http://tempuri.org/IService1/GetDataResponse" message="tns:IService1_GetData_OutputMessage" />
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="BasicHttpBinding_IService1" type="tns:IService1">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="GetData">
      <soap:operation soapAction="http://tempuri.org/IService1/GetData" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="Service1">
    <wsdl:port name="BasicHttpBinding_IService1" binding="tns:BasicHttpBinding_IService1">
      <soap:address location="http://localhost:8733/Design_Time_Addresses/WcfServiceLibrary1/Service1/" />
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>