logo       
Google Custom Search
    AddThis Social Bookmark Button

Bug #17986 Updated: SOAP Class Fault encoding issue: msg#00685

Subject: Bug #17986 Updated: SOAP Class Fault encoding issue
 ID:               17986
 Updated by:       programming@xxxxxxxx
 Reported By:      programming@xxxxxxxx
-Status:           Open
+Status:           Closed
 Bug Type:         PEAR related
 Operating System: Linux
 PHP Version:      4.1.2
 New Comment:

Yes that is what SOAP::Lite returns when the faultstring contains
"strange" characters (which in this case happened because of the
previous bug I opened).  You are right about the SOAP spec.  I will
contact the author of SOAP::Lite and inform him of this problem.


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

[2002-06-25 21:11:13] shane@xxxxxxxxxxx

This is the fault response that SOAP::Lite produces?  If so I don't
plan on doing anything about it.  If pear::soap is producing this, I
need code to reproduce this so I can fix the bug.

The spec is fairly clear about what should be in faultcode and
faultstring.  This message faultcode is completely invalid, and per
soap spec faultstring is 'intended to provide a human readable
explanation of the fault and is not intended for algorithmic
processing'.

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

[2002-06-25 19:48:18] programming@xxxxxxxx

We noticed this specifically when a Fault occurs on the server (we are
using SOAPLite for our server).  If the Fault is Base64 encoded, the
soap class does not decode it.  This is what the raw XML looks like:

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/";
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode xsi:type="xsd:string">SOAP-ENV:-1245</faultcode>
<faultstring
xsi:type="xsd:base64Binary">Q291bGQgbm90IHZlcmlmeSBwYXltZW50X3R5cGUgKMOMKS4gW0RSQVNNL1NRTC5wbSwxMTA0XSBbRFJBU00vU1FMLnBtLDI5N10gW0FjY291bnQucG0sMzA3XQ==</faultstring>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

The fault string should probably be decoded before being placed in the
message variable in the soap_fault Object.

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


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


-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




<Prev in Thread] Current Thread [Next in Thread>