Bug #17986 Updated: SOAP Class Fault encoding issue

From: Date: Wed, 26 Jun 2002 16:03:03 +0000
Subject: Bug #17986 Updated: SOAP Class Fault encoding issue
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-7376@lists.php.net to get a copy of this message
ID: 17986 Updated by: programming@cari.net Reported By: programming@cari.net -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@caraveo.com 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@cari.net 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

« previous php.pear.dev (#7376) next »