From:             waboring at 3gstech dot com
Operating system: linux
PHP version:      5CVS-2004-09-21 (dev)
PHP Bug Type:     SOAP related
Bug description:  SOAP results aren't parsed correctly

Description:
------------
I have a complex type returned in a SOAP reply and I am getting an array
with null values back from the soap client.

The array that is return has the correct keys, but the values are always
null.  The response has the values.  I tried this with NuSOAP and it works
fine.

The NuSoap script that works is at
http://www.newsblob.com/nusoap/qweb.php

I don't have a publicly available php5 install, but here is the code that
fails.

Reproduce code:
---------------
<?php
ini_set("soap.wsdl_cache_enabled", "0"); // disabling WSDL cache

function xxx($var) {
 echo "<xmp>\n";
 print var_dump($var, TRUE);
 echo "</xmp>\n";
}

$client = new SoapClient('http://www.newsblob.com/qweb.wsdl',
                         array('trace' => 1,
                               'exceptions' => 1));
//ok try and get the host struct
$host = $client->qwebGetHostInfo();
xxx($host);


echo "<br><br>Request : ".xxx($client->__getLastRequest(), TRUE);
echo "<br>Response : ".xxx($client->__getLastResponse(), TRUE);
?>

Expected result:
----------------
I should see:

array(3) { ["name"]=>  string(25) "blah blah some name field"
["shortDescription"]=>  string(43) "This is a description. more blah blah
blah" ["ipAddress"]=>  string(9) "127.0.0.1" }



Actual result:
--------------
array(3) { ["name"]=>  NULL ["shortDescription"]=> NULL ["ipAddress"]=> 
NULL }

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

Reply via email to