I have to consume a WCF WebServices but the WSDL contains bindings that PHP doesn't support also.

SOAP-ERROR: Parsing WSDL: PHP-SOAP doesn't support transport 'http://schemas.microsoft.com/soap/named-pipe'

How to bypass this problem?

Accepted Answer

If you have control of the WCF services a solution is to remove manually the unsupported bindings from the WSDL and save the WSDL in another location and point to it using:

<system.serviceModel>
  <behaviors>
    <serviceBehaviors>
      <behavior name="test">
        <serviceMetadata 
           externalMetadataLocation="http://YourServer/Service/MyService.wsdl"/>
      </behavior>
    </serviceBehaviors>
  </behaviors>
</system.serviceModel>
Written by Jader Dias
This page was build to provide you fast access to the question and the direct accepted answer.
The content is written by members of the stackoverflow.com community.
It is licensed under cc-wiki