Jump to content

soap problem


sturdyboyrich

Recommended Posts

hi all,

 

I could really do with your help on this soap problem I have, I've got to connect to a soap service hosted on a windows server when I try and connect either using nusoap or the built in soap of php5 the connection hangs and eventually times out with the error [HTTP] Error Fetching http headers ... does anyone have any ideas?

<?php
try {
    //vars
    $userName = "xxxx";  
    $password = "xxxx";
    
    $request = array(
                     'UserName' => $userName,
                     'Password' => $password,
				 'UsernameToken' =>"uuid-4932f54f-4e9f-4837-8ba0-a51d385856a6-1"
                     );
    
    //soap
    
    $namespace = "http://assureweb.co.uk/Schema/Annuities/V1/";
    $soapACTION = "SubmitAnnuityComparisonQuickQuote"; 
$URL = "https://annuitiesext.assureweb.co.uk/Services/AnnuityComparisonService.svc?wsdl";



   $client = new SoapClient($URL,array('soap_version'=>SOAP_1_2, 'trace'=>1, 'encoding'=>'UTF-8',"connection_timeout"=>5));
    
    $SaveTransaction = $client -> SubmitAnnuityComparisonQuickQuote($request, $namespace, $soapACTION);
    
} catch(SoapFault $fault){
    echo "SoapFault: ".$fault;
}
    echo "<pre>";
    print_r($client);  
    echo "</pre>";
    ?>

you can see what the script does by going to http://www.figurelist.com/test_script/

Thanks in advance

 

Rich

 

 

Link to comment
https://forums.phpfreaks.com/topic/167175-soap-problem/
Share on other sites

  • 4 years later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.