给出类似于以下内容的WSDL定义,SOAP 1.1客户端将打开与<soap:operation soapAction="http://api.example.com/IExample/Action1" ... />
中定义的URL的纯文本HTTP连接,还是仅打开与{{1}中定义的URL的HTTPS连接。 }? (假设为SSL / TLS正确配置了 exampleSOAPHttpsBinding_policy 。)
<soap:address location="https://api.example.com/soap" />
而且,与SOAP 1.2类似,如果<wsdl:definitions ...>
<wsp:Policy wsu:Id="exampleSOAPHttpsBinding_policy">
<!-- secure policy here -->
</wsp:Policy>
<!-- ... -->
<wsdl:binding name="exampleSOAPHttpsBinding" type="tns:IExample">
<wsp:PolicyReference URI="#exampleSOAPHttpsBinding_policy" />
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="Action1">
<soap:operation soapAction="http://api.example.com/IExample/Action1" 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="example">
<wsdl:port name="exampleSOAPHttpsBinding" binding="tns:exampleSOAPHttpsBinding">
<soap:address location="https://api.example.com/soap" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
是HTTP URL?
在我的情况下,SOAP客户端是.NET。从WSDL 1.1 spec看来,<soap12:operation soapAction
仅作为标头发送,但我想确保自己没有丢失任何内容。
P.S。如果您想推荐REST,可以,我也希望使用REST。
更新:重写问题以使其更容易阅读。
此外,我尝试使用Fiddler,并在测试中通过HTTPS(而非HTTP)进行连接。