#44746 [NEW]: SoapFault: Only http and https are allowed

From: Date: Wed, 16 Apr 2008 18:20:29 +0000
Subject: #44746 [NEW]: SoapFault: Only http and https are allowed
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-124292@lists.php.net to get a copy of this message
From:             rbrodka at kraftmaid dot com
Operating system: MS Windows Server 2003 Std
PHP version:      5.2.5
PHP Bug Type:     SOAP related
Bug description:  SoapFault: Only http and https are allowed

Description:
------------
This seems to be the same error as bug #42637, but I got it on Windows
Server 2003 Standard and PHP version 5.2.5.

I received the following error when trying to execute a soap client
function (invokeService):

Fatal error: SOAP Fault: (faultcode: HTTP, faultstring: Unknown protocol.
Only http and https are allowed.) in C:\randall\grid.php on line 36


The following functions work fine:
var_dump($client->__getFunctions());
var_dump($client->__getTypes());


Reproduce code:
---------------
try {
	$wsdl   = 'http://KM2BPM1/ApplicationServiceGateway.wsdl';
	$client = new SoapClient($wsdl); 
	$params = array();
	$params['commandLine'] = 'GET.PHONE.EXTENSION.FOR.USER USER=rbrodka';
	$params['options']     = '';
	echo $client->invokeService($params);
} catch (SoapFault $fault) {
   trigger_error("SOAP Fault: (faultcode: {$fault->faultcode},
faultstring: {$fault->faultstring})", E_USER_ERROR);
}

Expected result:
----------------
I expected the code to execute without triggering an error.


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



Thread (2 messages)

« previous php.bugs (#124292) next »