Bug #17986: SOAP Class Fault encoding issue
| From: | programming at cari dot net | Date: | Tue, 25 Jun 2002 23:48:19 +0000 |
| Subject: | Bug #17986: SOAP Class Fault encoding issue | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-7362@lists.php.net to get a copy of this message | ||
From: programming@cari.net
Operating system: Linux
PHP version: 4.1.2
PHP Bug Type: PEAR related
Bug description: SOAP Class Fault encoding issue
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 bug report at http://bugs.php.net/?id=17986&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=17986&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=17986&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=17986&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=17986&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17986&r=support
Expected behavior: http://bugs.php.net/fix.php?id=17986&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=17986&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=17986&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=17986&r=globals