How to use WCF WebServices from PHP?

I need to use WCF WebServices, but WSDL contains bindings that PHP also does not support.

SOAP-ERROR: WSDL analysis: PHP-SOAP does not support transport http://schemas.microsoft.com/soap/named-pipe '

How to get around this problem?

+3
source share
2 answers

If you have control over WCF services, the solution is to manually remove the unsupported bindings from the WSDL and save the WSDL elsewhere and point to it using:

<system.serviceModel>
  <behaviors>
    <serviceBehaviors>
      <behavior name="test">
        <serviceMetadata 
           externalMetadataLocation="http://YourServer/Service/MyService.wsdl"/>
      </behavior>
    </serviceBehaviors>
  </behaviors>
</system.serviceModel>
0
source

, , net named pipe binding. php, , SOAP/WS .

, HTTP, WS HTTP binding, , PHP.

+2

Source: https://habr.com/ru/post/1739351/


All Articles