Jump to content

sturdyboyrich

New Members
  • Posts

    1
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

sturdyboyrich's Achievements

Newbie

Newbie (1/5)

0

Reputation

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