|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62231 Tag attributes missing in SOAP Response in non-WSDL mode
Submitted: 2012-06-05 10:30 UTC Modified: -
Avg. Score:4.6 ± 0.5
Reproduced:6 of 6 (100.0%)
Same Version:1 (16.7%)
Same OS:1 (16.7%)
From: joerg dot klein at ifsam dot lu Assigned:
Status: Open Package: SOAP related
PHP Version: 5.3.13 OS: Windows 2008R2
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: joerg dot klein at ifsam dot lu
New email:
PHP Version: OS:


 [2012-06-05 10:30 UTC] joerg dot klein at ifsam dot lu
While receiving a message back from a soap call, tag attributes are missing. The 
SoapClient uses non-WSDL mode and soap_version SOAP_1_1.

Response with correct tag attribute (SoapClient::__getLastResponse): 
<s:Envelope xmlns:s=""><s:Header>
<ActivityId CorrelationId="53d1a6af-6103-441f-ad3a-7160a76f341f" 
<GetMessagesResponse xmlns="">
<Messages xmlns="">
  <Document xmlns="urn:iso:std:iso:20022:tech:xsd:setr.012.001.03" 
      	   <NetAmt Ccy="EUR">7000.00</NetAmt>

Test script:
$options = array('soapaction' => '');
$XMLObject = $this->soapClient->__soapCall("GetMessages", array(), $options);

echo "NetAmt :".$XMLObject->Messages->Document->Sbcpt->MltplExctnDtls->IndvExctnDtls->NetAmt;
echo "Ccy :".$XMLObject->Messages->Document->Sbcpt->MltplExctnDtls->IndvExctnDtls->NetAmt['Ccy'];

Expected result:
NetAmt: 7000
Ccy: EUR

Actual result:
NetAmt: 7000


Add a Patch

Pull Requests

Add a Pull Request

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Mar 22 04:03:45 2023 UTC