Connecting to a WCF Service in PHP that has a a NetTCP Binding and a BasicHttpBinding

Posted by Justin Dearing on Stack Overflow See other posts from Stack Overflow or by Justin Dearing
Published on 2009-12-19T15:36:34Z Indexed on 2010/04/04 12:13 UTC
Read the original article Hit count: 483

Filed under:
|
|
|

I have a WCF service. It has multiple clients and three endpoints. The endpoint bindings are nettcp, wsHttp and basicHttp. If I attempt to connect to it via php'd builtin SoapClient class like so:

$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

Right now my workaround is to save the wsdl manually and remove the nettcp binding. Is there a workaround that will allow me to use the automatically generated wsdl? Can I hide a binding from the wsdl in web.config? Can I generate different wsdls on different bindings. I don't want to deploy two service hosts.

© Stack Overflow or respective owner

Related posts about php

Related posts about .NET