#46063 [Opn->Fbk]: SoapFault exception: [HTTP] Error Fetching http headers
| From: | felipe@php.net | Date: | Fri, 13 Feb 2009 23:24:29 +0000 |
| Subject: | #46063 [Opn->Fbk]: SoapFault exception: [HTTP] Error Fetching http headers | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-133820@lists.php.net to get a copy of this message | ||
ID: 46063
Updated by: felipe@php.net
Reported By: filip_stjernberg at hotmaol dot com
-Status: Open
+Status: Feedback
Bug Type: SOAP related
Operating System: Windows vista
PHP Version: 5.2.6
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
Previous Comments:
------------------------------------------------------------------------
[2008-09-12 07:49:07] filip_stjernberg at hotmaol dot com
Description:
------------
I'm trying to use an existing webservice:
http://testhorizon.gothiagroup.com/AFSServices/AFSService.svc?wsdl
There is a simple test function called "HelloWorld" that returns the
input "myVaule". This function dos not need authentification but its
more advaced one do.
Really need this to work, have tried nuSOAP to but that gives me other
problems.
Reproduce code:
---------------
This is the code I use:
try{
$wsdl =
'http://testhorizon.gothiagroup.com/AFSServices/AFSService.svc?wsdl';
$client = new SoapClient($wsdl,
array(
'soap_version' => SOAP_1_2,
'trace' => 1,
'exceptions' => 1
));
print($client->HelloWorld(array('myValue' => 'Test')));
} catch (Exception $e) {
printf("Message = %s\n",$e->__toString());
}
print "<pre>n";
print "Request :n".htmlspecialchars($client->__getLastRequest())
."n";
print
"Response:n".htmlspecialchars($client->__getLastResponse())."n";
print "</pre>";
Expected result:
----------------
Hello from AFSService: Test
Actual result:
--------------
Message = SoapFault exception: [HTTP] Error Fetching http headers in
/customers/veus.se/veus.se/httpd.www/Test/samples/AFSWS1.php:20 Stack
trace: #0 [internal function]: SoapClient->__doRequest('<?xml
version="...', 'http://testhori...',
'http://tempuri....', 2, 0) #1
[internal function]: SoapClient->__call('HelloWorld', Array) #2
/customers/veus.se/veus.se/httpd.www/Test/samples/AFSWS1.php(20):
SoapClient->HelloWorld(Array) #3 {main}
nRequest :n<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"
xmlns:ns1="http://tempuri.org/"><env:Body><ns1:HelloWorld><ns1:myValue>Exor</ns1:myValue></ns1:HelloWorld></env:Body></env:Envelope>
nResponse:nn
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46063&edit=1