ID:               39515
 Updated by:       [EMAIL PROTECTED]
 Reported By:      david at acz dot org
-Status:           Open
+Status:           Assigned
 Bug Type:         SOAP related
 Operating System: SuSE Linux 9.3
 PHP Version:      5.2.0
-Assigned To:      
+Assigned To:      dmitry


Previous Comments:
------------------------------------------------------------------------

[2006-11-14 21:25:25] david at acz dot org

Description:
------------
Attributes from tags inside a SOAP fault detail are not returned in the
SoapFault object.  Below is a SOAP fault XML response and associated
SoapFault object.  Notice that the attributes for the "keyword" tag are
missing.

Reproduce code:
---------------
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><soapenv:Body>
<soapenv:Fault>
<faultcode xmlns:ns1="(ELIDED)">ns1:badKeywords</faultcode>
<faultstring>error string here</faultstring>
<detail>
<ns2:hostname
xmlns:ns2="http://xml.apache.org/axis/";>test.example.com</ns2:hostname>
<keyword reason="foobar" value="hello"/>
</detail>
</soapenv:Fault>
</soapenv:Body></soapenv:Envelope>

Expected result:
----------------
SoapFault Object
(
    [message:protected] => error string here
    [string:private] =>
    [code:protected] => 0
    [file:protected] => hello.php
    [line:protected] => 166
    [trace:private] => Array (ELIDED)
    [faultstring] => error string here
    [faultcode] => ns1:badKeywords
    [detail] => stdClass Object
        (
            [hostname] => test.example.com
            [keyword] => (ATTRIBUTES "reason" AND "value")
        )
)


Actual result:
--------------
SoapFault Object
(
    [message:protected] => error string here
    [string:private] =>
    [code:protected] => 0
    [file:protected] => hello.php
    [line:protected] => 166
    [trace:private] => Array (ELIDED)
    [faultstring] => error string here
    [faultcode] => ns1:badKeywords
    [detail] => stdClass Object
        (
            [hostname] => test.example.com
            [keyword] =>
        )
)



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=39515&edit=1

Reply via email to