1
需要使用soapclient访问web服务。我有以下设置。使用soapclient的WSDL
ini_set('default_socket_timeout', 120);
$client = new SoapClient(
"http://example.com/OnlineOrderProcessingWS.asmx?WSDL",
array('proxy_host' => "proxy url",
'proxy_port' => proxy port
)
);
$param=array("varname1"=>'value1',"varname2"=>'value2');
$result = $client->CustomerOrder($param);
print_r($result);
执行这个脚本抛出
Fatal error: Uncaught SoapFault exception: [HTTP] Error Fetching http headers.
你有没有找到解决方案 – sandeep 2011-12-05 07:16:20