sturdyboyrich Posted July 23, 2009 Share Posted July 23, 2009 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 Quote Link to comment https://forums.phpfreaks.com/topic/167175-soap-problem/ Share on other sites More sharing options...
kitesurfer Posted August 23, 2013 Share Posted August 23, 2013 I don't suppose you ever respolved this one Rich - I have the same issue now and would really appreciate some pointers! Quote Link to comment https://forums.phpfreaks.com/topic/167175-soap-problem/#findComment-1446435 Share on other sites More sharing options...
PravinS Posted August 23, 2013 Share Posted August 23, 2013 try using NuSOAP php toolkit Quote Link to comment https://forums.phpfreaks.com/topic/167175-soap-problem/#findComment-1446436 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.