#39515 [NEW]: SOAP fault detail does not contain attributes
| From: | david at acz dot org | Date: | Tue, 14 Nov 2006 21:25:25 +0000 |
| Subject: | #39515 [NEW]: SOAP fault detail does not contain attributes | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-104979@lists.php.net to get a copy of this message | ||
From: david at acz dot org
Operating system: SuSE Linux 9.3
PHP version: 5.2.0
PHP Bug Type: SOAP related
Bug description: SOAP fault detail does not contain attributes
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 bug report at http://bugs.php.net/?id=39515&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39515&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39515&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39515&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=39515&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=39515&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=39515&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=39515&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=39515&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=39515&r=support
Expected behavior: http://bugs.php.net/fix.php?id=39515&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=39515&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=39515&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=39515&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39515&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=39515&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=39515&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=39515&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=39515&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=39515&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=39515&r=mysqlcfg