From: Operating system: Ubuntu PHP version: 5.3.3 Package: SOAP related Bug Type: Bug Bug description:Soap header object without attributes
Description: ------------ when soap server handles the soap header, the object version of the header does not contain it's attributes. Test script: --------------- server <?php class testSoap{ protected $auth; public function login($data){ $this->auth=print_r($data,1); } public function getLogin(){ return $this->auth; } } $server = new SoapServer('test.wsdl', array('cache_wsdl'=>WSDL_CACHE_NONE)); $server->setObject(new testSoap()); $server->handle(); ?> client <?php $cl = new SoapClient('http://sviluppo.netanday.it/wsdltest/test.wsdl', array('cache_wsdl'=>WSDL_CACHE_NONE, 'trace'=>true) ); $xml = "<gs:login xmlns:gs=\"http://www.goetas.com\"><logdata name='user' password='pwd' /></gs:login>"; $cl->__setSoapHeaders(array(new SoapHeader('http://www.goetas.com', 'login', new \SoapVar($xml, XSD_ANYXML)))); echo $cl->getLogin(); ?> Expected result: ---------------- stdClass Object ( [logdata] => stdClass Object ( [name] => user [password] => pwd ) ) Actual result: -------------- stdClass Object ( [logdata] => ) -- Edit bug report at http://bugs.php.net/bug.php?id=53068&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=53068&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=53068&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=53068&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=53068&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=53068&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=53068&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=53068&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=53068&r=needscript Try newer version: http://bugs.php.net/fix.php?id=53068&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=53068&r=support Expected behavior: http://bugs.php.net/fix.php?id=53068&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=53068&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=53068&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=53068&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=53068&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=53068&r=dst IIS Stability: http://bugs.php.net/fix.php?id=53068&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=53068&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=53068&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=53068&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=53068&r=mysqlcfg