From:             chmt at gmx dot net
Operating system: Windows 2003 server
PHP version:      5.1.6
PHP Bug Type:     SOAP related
Bug description:  SoapClient returns wrong class (soap inheritance)

Description:
------------
My wsdl based SoapClient returns wrong/empty objects. I tried it with and
without a classmap. Nothing helps. The only way to get to my Data seems to
be to parse the XML Response by hand.

The WSDL can be obtained from here:
http://media3.hgkz.ch/PlayerRPC.wsdl

Reproduce code:
---------------
function createWSDLUrl($url) {
  return 'http://'.$url.'?wsdl';
}

class PlayItem {

}

class Play extends PlayItem {
  public $url;
  public $length;
  public $x;
}

$classmap = array('PlayItem'=>'PlayItem', 'Play'=>'Play');
$client = new SoapClient(createWSDLUrl($url),
                 array("location"=>"http://".$url,
                        "connection_timeout" => 5,
                        "uri"=>"urn:Playout",
                        "classmap"=>$classmap);

$ret = $client->getItem('localhost:18081', 0, 0);
var_dump($ret);


Expected result:
----------------
A Play object with valid data

Actual result:
--------------
A PlayItem object and no way to access the data the webservice delivered.

object(PlayItem)#4 (0) {
}

which is wrong.

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

Reply via email to