Bug #62231 [NEW]: Tag attributes missing in SOAP Response in non-WSDL mode
From: joerg dot klein at ifsam dot lu
Operating system: Windows 2008R2
PHP version: 5.3.13
Package: SOAP related
Bug Type: Bug
Bug description:Tag attributes missing in SOAP Response in non-WSDL mode
Description:
------------
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="http://schemas.xmlsoap.org/soap/envelope/"><s:Header>
<ActivityId CorrelationId="53d1a6af-6103-441f-ad3a-7160a76f341f"
xmlns="http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics">5cbc1103-
589c-4f6e-86ee-9cafc58caab5</ActivityId></s:Header><s:Body>
<GetMessagesResponse xmlns="http://test.example.com/2009/7/3/TestService">
<GetMessagesResult>
<Messages xmlns="http://test.example.com/2009/7/24/messages">
<Document xmlns="urn:iso:std:iso:20022:tech:xsd:setr.012.001.03"
xmlns:im="http://test.example.com/internalMessage/V1.0">
<Sbcpt>
<MltplExctnDtls>
<IndvExctnDtls>
<NetAmt Ccy="EUR">7000.00</NetAmt>
</IndvExctnDtls>
</MltplExctnDtls>
</Sbcpt>
</Document>
</Messages></GetMessagesResult></GetMessagesResponse></s:Body></s:Envelope>
Test script:
---------------
$options = array('soapaction' =>
'http://test.example.com/2009/7/3/TestService/TestService/GetMessages');
$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
Ccy:
--
Edit bug report at https://bugs.php.net/bug.php?id=62231&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=62231&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=62231&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=62231&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=62231&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=62231&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=62231&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=62231&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=62231&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=62231&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=62231&r=support
Expected behavior: https://bugs.php.net/fix.php?id=62231&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=62231&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=62231&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=62231&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=62231&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=62231&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=62231&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=62231&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=62231&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=62231&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=62231&r=mysqlcfg
Thread (1 message)
- joerg dot klein at ifsam dot lu