我正在使用 C#,我想检查 WSDL 支持哪个版本的 SOAP。我怎样才能找到它?
WSDL 1.1 文件中包含以下命名空间
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
WSDL 1.2 文件中包含以下命名空间
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
如果一个文件同时支持这两个版本,它可以包含以下类型的内容
<wsdl:binding name="CustServiceSoap" type="tns:CustServiceSoap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="GetAllCustomers">
<soap:operation soapAction="http://tempuri.org/GetAllCustomers" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="GetNCustomers">
<soap:operation soapAction="http://tempuri.org/GetNCustomers" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="GetRangeOfCustomers">
<soap:operation soapAction="http://tempuri.org/GetRangeOfCustomers" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:binding name="CustServiceSoap12" type="tns:CustServiceSoap">
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="GetAllCustomers">
<soap12:operation soapAction="http://tempuri.org/GetAllCustomers" style="document" />
<wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="GetNCustomers">
<soap12:operation soapAction="http://tempuri.org/GetNCustomers" style="document" />
<wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="GetRangeOfCustomers">
<soap12:operation soapAction="http://tempuri.org/GetRangeOfCustomers" style="document" />
<wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
</wsdl:operation>