How do you determine a valid SoapAction?

前端 未结 1 1114
悲&欢浪女
悲&欢浪女 2020-12-31 04:24

I\'m calling a webservice using the NuSoap PHP library. The webservice appears to use .NET; every time I call it I get an

相关标签:
1条回答
  • 2020-12-31 04:35

    You can see the SoapAction that the service operation you're calling expects by looking at the WSDL for the service. For .NET services, you can access the WSDL by opening a web browser to the url of the service and appending ?wsdl on the end.

    Inside the WSDL document, you can see the SoapActions defined under the 'Operation' nodes (under 'Bindings'). For example:

    <wsdl:operation name="Execute">
      <soap:operation soapAction="http://tempuri.org/Execute" style="document" />
    

    Find the operation node for the operation you're trying to invoke, and you'll find the Soap Action it expects there.

    0 讨论(0)
提交回复
热议问题