From:             yaksenov at iponweb dot net
Operating system: gentoo-linux
PHP version:      5.2.0
PHP Bug Type:     SOAP related
Bug description:  absent fault detail node

Description:
------------
SoapFault->__construct() with 'faultname' causes wrong 
fault response: the <detail> node is absent.

Reproduce code:
---------------
http://rapidshare.com/files/1788815/soap_fault_detail_post.tar.gz

Expected result:
----------------
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope 
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:ns1="http://api.mymanager.com/types"; 
xmlns:ns2="urn:ContactService" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
  <SOAP-ENV:Body>
    <SOAP-ENV:Fault>
      <faultcode>SOAP-ENV:Server</faultcode>
      <faultstring>always throw exception</faultstring>
      
<faultactor>http://localhost/soap_fault_detail/contact.php</faultactor>
      <detail>
        <ns2:exception_detail 
xsi:type="ns1:exception_detail">
          <code xsi:type="xsd:string">access</code>
        </ns2:exception_detail>
      </detail>
    </SOAP-ENV:Fault>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>


Actual result:
--------------
 <?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope 
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:ns1="http://api.mymanager.com/types";>
  <SOAP-ENV:Body>
    <SOAP-ENV:Fault>
      <faultcode>SOAP-ENV:Server</faultcode>
      <faultstring>always throw exception</faultstring>
      
<faultactor>http://localhost/soap_fault_detail/contact.php</faultactor>
      <exception_detail xsi:type="ns1:exception_detail">
        <code>access</code>
      </exception_detail>
    </SOAP-ENV:Fault>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>


-- 
Edit bug report at http://bugs.php.net/?id=39357&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=39357&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=39357&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=39357&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=39357&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=39357&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=39357&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=39357&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=39357&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=39357&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=39357&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=39357&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=39357&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=39357&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=39357&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=39357&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=39357&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=39357&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=39357&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=39357&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=39357&r=mysqlcfg

Reply via email to