Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/249.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net 通过wsHttpBinding在PHP中调用WCF Web服务_.net_Php_Wcf_Wshttpbinding - Fatal编程技术网

.net 通过wsHttpBinding在PHP中调用WCF Web服务

.net 通过wsHttpBinding在PHP中调用WCF Web服务,.net,php,wcf,wshttpbinding,.net,Php,Wcf,Wshttpbinding,我有一个WCF Web服务,我可以通过Basichtp连接到它,但不能通过wsHttp。我尝试通过以下方式通过wshttp连接到它: $service = new SoapClient ("http://service.companyname.local:6666/Service/?wsdl", array( "location" => "http://service.companyname.local:6666/Service/WCF", "trace" =

我有一个WCF Web服务,我可以通过Basichtp连接到它,但不能通过wsHttp。我尝试通过以下方式通过wshttp连接到它:

$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
     )
);

对SoapClient构造函数的调用返回fine。当我尝试使用$client->FunctionName调用一个函数时,页面只是在那里加载了很长一段时间,最终返回错误“error Fetching http headers”。这到底意味着什么?我该如何修复它?(使用.Net客户端的服务工作得非常好。)

上次我检查时,php不支持
wsHttpBinding
在wsHttpBinding上使用高级WS-Security和WS-Addressing特性,而这些特性是php客户端无法理解的。还有其他PHP可访问的SOAP客户端可以工作(例如,Apache Axis2+Rampart/C),或者您可以尝试关闭一些不兼容的wsHttpBinding特性(消息安全性可能是第一个)。并不是说它不起作用,但您可能需要一些尝试和错误才能使其正常工作。

Svetlozar,您在哪里检查的?你是否写了一些代码,在谷歌上搜索,并获得了我所做的?你查过PHP文档了吗?一些邮件列表?如果做不到,我想知道为什么做不到。我同意,这一笼统的声明应该有一些实质内容。PHP和WCF是我正在努力解决的一个领域,web上有许多变通方法,似乎是人们在使用之前“摆弄”的结果,但到目前为止,还没有人能够一步一步准确地确定交互中的问题。