Jump to content

soap problem


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?

try {
    $userName = "xxxx";  
    $password = "xxxx";
    $request = array(
                     'UserName' => $userName,
                     'Password' => $password,
				 'UsernameToken' =>"uuid-4932f54f-4e9f-4837-8ba0-a51d385856a6-1"
    $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>";
    echo "</pre>";

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

Thanks in advance





Link to comment
Share on other sites

  • 4 years later...
This thread is more than a year old. Are you sure you have something important to add to it?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • 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.