I have a WCF service. It has several clients and three endpoints. Endpoint associations are nettcp, wsHttp, and basicHttp. If I try to connect to it via php'd the SoapClient built-in class, for example:
$service = new SoapClient
("http://service.companyname.local:6666/Service/?wsdl",
array(
"location" => "http://service.companyname.local:6666/Service/Basic",
"trace" => true,
'soap_version' => SOAP_1_1
)
);
I get the following:
PHP Fatal error: SOAP-ERROR: Parsing WSDL: PHP-SOAP doesn't support transport 'http://schemas.microsoft.com/soap/tcp' in c:\www\client.php on line 666
My current workaround is to manually save wsdl and remove the nettcp binding. Is there a workaround that will allow me to use the automatically generated wsdl? Is it possible to hide the binding from wsdl in web.config? Can I generate different wsdls for different bindings. I do not want to deploy two service hosts.
source
share