WSDL using soapclient
- by Krishna Priya
Hi,
Need to access a webservice using soapclient.I have the following settings.
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); 
Executing this script throwing Fatal error: Uncaught SoapFault exception: [HTTP] Error Fetching http headers. How to fix this issue. Please anyone help.