From:             cjbottaro at alumni dot cs dot utexas dot edu
Operating system: linux
PHP version:      5.0.4
PHP Bug Type:     SOAP related
Bug description:  SOAP response incorrectly parsed when complex types are used

Description:
------------
The php parses a SOAP response with multiple parts, it  
ignores everything under a complex type.  For example:  
  
<soap_listTasksResponse SOAP-ENC:root="1">  
<task_ids SOAP-ENC:arrayType="xsd:int[20]"  
xsi:type="SOAP-ENC:Array">  
<item>519</item>  
<item>536</item>  
</task_ids>  
<errcode xsi:type="xsd:int">0</errcode>  
<errmsg xsi:type="xsd:string">success</errmsg>  
</soap_listTasksResponse>  
  
php gets task_ids, but it doesn't get errcode and  
errmsg.  

Reproduce code:
---------------
$proxy = SoapClient("...");
$rv = $proxy->myCall();
print_r($rv);

Expected result:
----------------
Array  
(  
   [task_ids] => Array( 
                         [0] => 519 
                         [1] => 536 
                      )  
   [errcode] => 0  
   [errmsg] => success  
)  

Actual result:
--------------
Array 
( 
   [0] => 519 
   [1] => 536 
) 

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

Reply via email to