You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by ga...@apache.org on 2007/07/30 05:48:40 UTC

svn commit: r560855 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/DispatchPhase.java

Author: gawor
Date: Sun Jul 29 20:48:40 2007
New Revision: 560855

URL: http://svn.apache.org/viewvc?view=rev&rev=560855
Log:
service/operation not found errors should be sent with fault code set to Client (fixes CTS regression)

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/DispatchPhase.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/DispatchPhase.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/DispatchPhase.java?view=diff&rev=560855&r1=560854&r2=560855
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/DispatchPhase.java (original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/DispatchPhase.java Sun Jul 29 20:48:40 2007
@@ -59,8 +59,10 @@
         EndpointReference toEPR = msgContext.getTo();
 
         if (msgContext.getAxisService() == null) {
-            throw new AxisFault(Messages.getMessage("servicenotfoundforepr",
+            AxisFault fault = new AxisFault(Messages.getMessage("servicenotfoundforepr",
                                                     ((toEPR != null) ? toEPR.getAddress() : "")));
+            fault.setFaultCode(org.apache.axis2.namespace.Constants.FAULT_CLIENT);
+            throw fault;
         }
 
         AxisService service = msgContext.getAxisService();
@@ -81,9 +83,11 @@
 
         // If we still don't have an operation, fault.
         if (operation == null) {
-            throw new AxisFault(Messages.getMessage("operationnotfoundforepr",
+            AxisFault fault = new AxisFault(Messages.getMessage("operationnotfoundforepr",
                                                     ((toEPR != null) ? toEPR.getAddress()
                                                             : ""), msgContext.getWSAAction()));
+            fault.setFaultCode(org.apache.axis2.namespace.Constants.FAULT_CLIENT);
+            throw fault;
         }
 
         validateTransport(msgContext);



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org