axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r560855 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/DispatchPhase.java
Date Mon, 30 Jul 2007 03:48:40 GMT
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


Mime
View raw message