Calling a WCF WebService in PHP via wsHttpBinding.

Posted by Justin Dearing on Stack Overflow See other posts from Stack Overflow or by Justin Dearing
Published on 2009-12-19T15:45:25Z Indexed on 2011/01/10 0:53 UTC
Read the original article Hit count: 183

Filed under:
|
|
|

I have a WCF webservice I can connect to it via basicHttp, but not wsHttp. I try to conenct to it via wshttp via the following:

$service = new SoapClient
("http://service.companyname.local:6666/Service/?wsdl",
 array(
         "location" => "http://service.companyname.local:6666/Service/WCF",

	"trace" => true,
	'soap_version' => SOAP_1_2
     )
);

The call to the SoapClient constructor returns fine. When I try to call one using $client->FunctionName, the page just sits there loading for quite a while, and eventually returns the error "Error Fetching http headers". What exactly is this supposed to mean and how do I fix it? (Consuming the service from .Net client works perfectly.)

© Stack Overflow or respective owner

Related posts about .NET

Related posts about php