From:             filip_stjernberg at hotmaol dot com
Operating system: Windows vista
PHP version:      5.2.6
PHP Bug Type:     SOAP related
Bug description:  SoapFault exception: [HTTP] Error Fetching http headers 

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 bug report at http://bugs.php.net/?id=46063&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=46063&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=46063&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=46063&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=46063&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=46063&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=46063&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=46063&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=46063&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=46063&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=46063&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=46063&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=46063&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=46063&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=46063&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=46063&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=46063&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=46063&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=46063&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=46063&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=46063&r=mysqlcfg

Reply via email to