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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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: Tue Apr 16 08:01:32 2024 UTC