[prev in list] [next in list] [prev in thread] [next in thread]
List: pecl-cvs
Subject: [PECL-CVS] cvs: pecl(FULMAR) /sdo/SCA/Bindings/soap Mapper.php
From: "Matthew Peters" <mfp () php ! net>
Date: 2007-11-29 17:09:49
Message-ID: cvsmfp1196356189 () cvsserver
[Download RAW message or body]
mfp Thu Nov 29 17:09:49 2007 UTC
Modified files: (Branch: FULMAR)
/pecl/sdo/SCA/Bindings/soap Mapper.php
Log:
Fix for bug11996: Return a more meaningful message when the XML cannot be parsed.
http://cvs.php.net/viewvc.cgi/pecl/sdo/SCA/Bindings/soap/Mapper.php?r1=1.2.4.2&r2=1.2.4.3&diff_format=u
Index: pecl/sdo/SCA/Bindings/soap/Mapper.php
diff -u pecl/sdo/SCA/Bindings/soap/Mapper.php:1.2.4.2 pecl/sdo/SCA/Bindings/soap/Mapper.php:1.2.4.3
--- pecl/sdo/SCA/Bindings/soap/Mapper.php:1.2.4.2 Tue Sep 18 12:52:12 2007
+++ pecl/sdo/SCA/Bindings/soap/Mapper.php Thu Nov 29 17:09:49 2007
@@ -103,8 +103,7 @@
{
$problem = $e->getMessage();
if ( $e instanceof SDO_Exception )
- $problem = "SDO_Exception in fromXML : " . $problem ;
-
+
/**
* Depending on whether the function is being used on the client side
* or the server side either report the problem to the client, or
@@ -114,7 +113,8 @@
/* When the 'TypeHandler is being used by the Soap Server */
if (strcmp($this->association, self::SERVER) === 0)
- SoapServer::fault("Client", "Unable to decode from XML");
+ throw new SoapFault("Client",
+ "Unable to decode the SOAP message from XML. The problem was: ".$problem);
}/* End trap the problem */
--
PECL CVS Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic