Fault problems with DIME

From: Date: Tue, 17 Jun 2003 15:56:15 +0000
Subject: Fault problems with DIME
Groups: php.soap 
Request: Send a blank email to php-soap+get-716@lists.php.net to get a copy of this message
Hello. I have the following problem: I send a request containing DIME attachements to PEAR::SOAP server and in the server code throw SOAP_Fault. But due to backtrace in <details> section of response I get a garbage in the output - you see, backtrace puts contents of attached DIME files directly into response xml. It happens because I pass attached files as parameters to server function, and backtrace outputs that parameters. The output look like this: <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" ....> <SOAP-ENV:Body> <SOAP-ENV:Fault> <faultcode xsi:type="xsd:QName">SOAP-ENV:Client</faultcode> <faultstring xsi:type="xsd:string">Error!</faultstring> <faultactor xsi:type="xsd:anyURI"></faultactor> <detail xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="Struct[9]" SOAP-ENC:offset="[0]"> .... <item> <function xsi:type="xsd:string">UploadencodedData</function> <class xsi:type="xsd:string">soap_FileManagement_server</class> <type xsi:type="xsd:string">-&gt;</type> <args xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="xsd:string[5]" SOAP-ENC:offset="[0]"> <item xsi:type="xsd:string">login</item> <item xsi:type="xsd:string">password</item> <item xsi:type="xsd:string">4</item> <item xsi:type="xsd:string">form_Form_ms.xml</item> <item xsi:type="xsd:string">L wÔÓ÷ ã.Êo4èú»mw@Z8jötÛ jŒç‡?H¸¼x6%t¼UÑÛËh¼£$°?µ/)6¶ïmÿKT€c©‘ è&amp;~ü1Až&amp;?`pø„ñ…Oì2åA »‰‰W0?C »D¢ŒåZ‰’ÕábzO_?² ²×n+è? ‹Ý}ø‘|'\–Bè+X¸?àLèrhv92í́¦pÓé$¸ÜäïJ±‚o5T0Ç îÕ®…l]ÓM?ãC¼í‚Aõ´Wv¶ N•@…ˆNèÙd«Ò¹é‘dŒ`³’ðCOKËC8Õ&amp;/aõ[‰„§ŽæC5JýÍÅoWá?=ó?kú¯ÊŽ‚×e±Ž,cò9dø¨ ?jsn8–O•ho‚Rfˆ¬³`Â?ab?Ò»pÂ×VØ©?V¤:§Ìÿ‹á1SsEöv?:fQ.¤DoÛ@:Ý=bÚã ‚?þžãq Wo„ZJI‘!éƒHÎùº‰BL$*¸ ..... </item></detail></SOAP-ENV:Fault> </SOAP-ENV:Body> </SOAP-ENV:Envelope> This is not correct UTF-8 file and xml-reader compains about this... Is there any way to fix this except for commenting lines in SOAP/Fault.php that output backtrace? Best regards, Artem Bozhenov

« previous php.soap (#716) next »