ID:               42637
 Comment by:       wmoran at collaborativefusion dot com
 Reported By:      christof at sanmax dot be
 Status:           Assigned
 Bug Type:         SOAP related
 Operating System: Linux
 PHP Version:      5.2.4
 Assigned To:      dmitry
 New Comment:

Correction to my last note:
It worked in 5.2.1.  I have no testing history against 5.2.2 and 5.2.3.


Previous Comments:
------------------------------------------------------------------------

[2007-09-27 16:04:16] wmoran at collaborativefusion dot com

I can narrow this down a bit further.  We did not see this behavior
with 5.2.3, but it occurs with 5.2.4.

------------------------------------------------------------------------

[2007-09-12 06:51:02] christof at sanmax dot be

Description:
------------
When sending a request with the SoapClient, a SoapFault is produced :

Fatal error: Uncaught SoapFault exception: [HTTP] Unknown protocol.
Only http and https are allowed.

The probleem seems to be located in the php_url_parse_ex function. In
version 5.1.6 it works fine, in 5.2.4 is does not. The php scheme is
null instead of http according to our tests.

Reproduce code:
---------------
$base = 'http://<some soap service url>/service.asmx?WSDL';
$soap = new SoapClient($base, array('trace' => 1));

$login = new StdClass;
$login->userName  = 'test';
$login->passWord  = 'test';
$login->languageCode = 'NL';

$loginResult = $soap->Login($login);


Expected result:
----------------
no soapfault. In php 5.1.6 it works fine, no exception is thrown.

Actual result:
--------------
Fatal error: Uncaught SoapFault exception: [HTTP] Unknown protocol.
Only http and https are allowed in
/home/data/websites/www/phptest.php:10
Stack trace:
#0 [internal function]: SoapClient->__doRequest('<?xml version="...',
'http://demobet5...', 'http://XServer....', 1, 0)
#1 [internal function]: SoapClient->__call('Login', Array)
#2 /home/data/websites/www/phptest.php(10):
SoapClient->Login(Object(stdClass))
#3 {main}
  thrown in /home/data/websites/www/phptest.php on line 10



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=42637&edit=1

Reply via email to