php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32725 SOAP response incorrectly parsed when complex types are used
Submitted: 2005-04-15 22:47 UTC Modified: 2005-04-15 23:23 UTC
From: cjbottaro at alumni dot cs dot utexas dot edu Assigned:
Status: Not a bug Package: SOAP related
PHP Version: 5.0.4 OS: linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: cjbottaro at alumni dot cs dot utexas dot edu
New email:
PHP Version: OS:

 

 [2005-04-15 22:47 UTC] cjbottaro at alumni dot cs dot utexas dot edu
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 
) 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-04-15 23:23 UTC] cjbottaro at alumni dot cs dot utexas dot edu
I am terribly sorry, please disregard this bug report.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 18:01:29 2024 UTC