|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61938 SoapClient Error Fetching http headers
Submitted: 2012-05-04 09:30 UTC Modified: 2012-05-04 12:50 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: nicola dot riva at emiliainformatica dot it Assigned:
Status: Open Package: SOAP related
PHP Version: 5.3.12 OS: Windows 7 Ultimate N
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
48 + 9 = ?
Subscribe to this entry?

 [2012-05-04 09:30 UTC] nicola dot riva at emiliainformatica dot it
I'm not so skilled with SOAP but I need to use it for a specific request and I'm 
in trouble with a SOAP call to an existing WSDL.

The web service provider has recently changed its environment from PHP to 
ASP.NET and from SOAP 1.1 to SOAP 1.2. Since then I can't use the service I 
need, and I'm getting this Error fetching HTTP heders.

I'm pretty sure that's my client error because another user (they said), that 
uses .NET client, is going well.

I found in many sites and forums that can be a bug in versions below 5.2.6 but, 
as I said, I'm using >5.3 version.

How can I fix it?

Thanks in advance!

Test script:
    $cli=new SoapClient("",array("soap_version"=>SOAP_1_2,"trace"=>1));


    }catch(Exception $e){
        $debug='<h2>Exception</h2><pre>'.htmlspecialchars($e, ENT_QUOTES).'</pre>';
        $debug .='<h2>getLastRequest</h2><pre>'.htmlspecialchars($cli->__getLastRequest(), ENT_QUOTES).'</pre>';
        $debug .='<h2>getLastResponse</h2><pre>'.htmlspecialchars($cli->__getLastResponse(), ENT_QUOTES).'</pre>';

    echo $debug;

The WSDL file is found here:

Actual result:
SoapFault exception: [HTTP] Error Fetching http headers in C:\Program 
Stack trace:
#0 [internal function]: SoapClient->__doRequest('<?xml version="...', 
'', 'http://tempuri....', 2, 0)
#1 [internal function]: SoapClient->__call('RichiestaNuovoR...', Array)
#2 C:\Program Files\xampp\htdocs\spotter\classes\SOAP_functions.php(160): 
#3 C:\Program Files\xampp\htdocs\spotter\transactioner.php(202): SOAP_functions-
>buyDocument(Object(MySQL_functions), Object(Generic_functions), Array, '1', 
'1_nsordyll_shoe...', 0, Array)
#4 {main}

<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="" 



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-05-04 12:07 UTC] reeze dot xia at gmail dot com
Hi, nicola:
   I've tested the soap service, it seems that the service is broken.
action point to obviously, it just for test. but it didn't
work anymore, you could try this one:

It works good.

BTW: next time if you have usage problem, you could try ask on,
you will get response more quickly, since is about BUGS for php it 
self but not PHP usage.;)
 [2012-05-04 12:50 UTC] nicola dot riva at emiliainformatica dot it
Hi Reeze,
Thank you for your reply and sorry if I wrote here instead of stackoverflow.
Next time I'll use it first :)

Now trying to solve this.
 [2012-06-12 10:08 UTC] braju dot cse at gmail dot com
     Am also receive same problem. could you tell the problem on windows 7 ultimate?

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jul 21 13:01:28 2024 UTC