Bug #55348 [NEW]: SoapServer (typemap related) "Error calling from_xml callback"

From: Date: Tue, 02 Aug 2011 15:14:41 +0000
Subject: Bug #55348 [NEW]: SoapServer (typemap related) "Error calling from_xml callback"
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-162369@lists.php.net to get a copy of this message
From: Operating system: openSUSE 11.4 PHP version: 5.3.7RC4 Package: SOAP related Bug Type: Bug Bug description:SoapServer (typemap related) "Error calling from_xml callback" Description: ------------ Throwing a SoapFault exception inside the from_xml callback function (when using the "typemap" feature with SoapServer) does not work as expected in some cases. I have created a small client/server application with one working example (type "date") and one not working example (type "myType"). In case of the "date" type the SoapFault exception is transformed into a matching SOAP-Response. The original message is available on the client side. In case of the "myType" type the thrown SoapFault exception is completely ignored and the SOAP-Response contains another error message. Test script: --------------- http://www.visionconnect.de/php_bugreports/soapserver_to_xml.tar.gz Expected result: ---------------- Faultcode: 0001 Faultstring: Invalid date: 2011-15-15 Faultcode: 0002 Faultstring: Invalid type: foobar Actual result: -------------- Faultcode: 0001 Faultstring: Invalid date: 2011-15-15 Faultcode: SOAP-ENV:Server Faultstring: SOAP-ERROR: Encoding: Error calling from_xml callback -- Edit bug report at https://bugs.php.net/bug.php?id=55348&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=55348&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=55348&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=55348&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=55348&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=55348&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=55348&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=55348&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=55348&r=needscript Try newer version: https://bugs.php.net/fix.php?id=55348&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=55348&r=support Expected behavior: https://bugs.php.net/fix.php?id=55348&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=55348&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=55348&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=55348&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=55348&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=55348&r=dst IIS Stability: https://bugs.php.net/fix.php?id=55348&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=55348&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=55348&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=55348&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=55348&r=mysqlcfg

« previous php.bugs (#162369) next »