From: dennisyerger84 at comcast dot net Operating system: Windows XP PHP version: 5.1.2 PHP Bug Type: SOAP related Bug description: SoapClient calls
Description: ------------ I've been using php to create web services and experiment with them. One of the things I think is important to web services is true object functionality, which means setting a value and being able to retrieve that same value later. For example, if I want to call an operation (a setter) to set a certain value for an instance of a service port, I want to be able to retrieve that same value with a call to other operation (a getter) if I wanted to. The problem I've been having is when I make more than one operation call on a single instance of SoapClient. However, this problem only occurs when I use another php script as the service port itself. In other words, I'm using php at both ends: client and server. But when the service port is, say, a coldfusion component, I get no trouble at all. Could this be an issue with the web server I'm running? I am running Abyss Web Server X1 for both my client and server scripts. Reproduce code: --------------- client side script: $c = new SoapClient("http://localhost/session.php?wsdl"); $c->setString("my name is dennis"); echo $c->getString(); //this causes the error. If I called this first it would cause no trouble until I made another call to an operation server side script: //Session class definition goes above the follwing code: $server = new SoapServer("Session.wsdl"); $server->setClass("Session"); $server->setPersistence(SOAP_PERSISTENCE_SESSION); $server->handle(); Expected result: ---------------- my name is dennis Actual result: -------------- SoapFault exception: [HTTP] Error Fetching http headers in C:\Program Files\Abyss Web Server\htdocs\client.php:9 Stack trace: #0 [internal function]: SoapClient->__doRequest('<?xml version="...', 'http://localhos...', 'http://tempuri....', 1) #1 [internal function]: SoapClient->__call('getString', Array) #2 C:\Program Files\Abyss Web Server\htdocs\client.php(9): SoapClient->getString() #3 {main} -- Edit bug report at http://bugs.php.net/?id=36616&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36616&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36616&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36616&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36616&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36616&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36616&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=36616&r=needscript Try newer version: http://bugs.php.net/fix.php?id=36616&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36616&r=support Expected behavior: http://bugs.php.net/fix.php?id=36616&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36616&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36616&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36616&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36616&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36616&r=dst IIS Stability: http://bugs.php.net/fix.php?id=36616&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36616&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36616&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36616&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=36616&r=mysqlcfg