WSDL using soapclient

Posted by Krishna Priya on Stack Overflow See other posts from Stack Overflow or by Krishna Priya
Published on 2010-05-19T11:54:27Z Indexed on 2010/05/19 12:00 UTC
Read the original article Hit count: 605

Filed under:

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.

© Stack Overflow or respective owner

Related posts about wsdl