Author: sichen
Date: Mon Jun 4 16:51:41 2007
New Revision: 544329
URL:
http://svn.apache.org/viewvc?view=rev&rev=544329Log:
Return an XML-RPC fault on service error in the XML-RPC event handler
Modified:
ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/XmlRpcEventHandler.java
Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/XmlRpcEventHandler.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/XmlRpcEventHandler.java?view=diff&rev=544329&r1=544328&r2=544329==============================================================================
--- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/XmlRpcEventHandler.java (original)
+++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/XmlRpcEventHandler.java Mon Jun 4 16:51:41 2007
@@ -17,6 +17,9 @@
under the License.
*/
+/* This file has been modified by Open Source Strategies, Inc. */
+
+
package org.ofbiz.webapp.event;
import org.apache.xmlrpc.common.ServerStreamConnection;
@@ -218,6 +221,7 @@
}
if (ServiceUtil.isError(resp)) {
Debug.logError(ServiceUtil.getErrorMessage(resp), module);
+ throw new XmlRpcException(ServiceUtil.getErrorMessage(resp));
}
// return only definied parameters