You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by st...@apache.org on 2002/09/07 02:05:31 UTC
cvs commit: xml-axis/java/src/org/apache/axis Constants.java
stevel 2002/09/06 17:05:31
Modified: java/src/org/apache/axis/server AxisServer.java
java/src/org/apache/axis Constants.java
Log:
using a const for the no service fault qname
Revision Changes Path
1.80 +2 -1 xml-axis/java/src/org/apache/axis/server/AxisServer.java
Index: AxisServer.java
===================================================================
RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/server/AxisServer.java,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -r1.79 -r1.80
--- AxisServer.java 23 Aug 2002 15:05:14 -0000 1.79
+++ AxisServer.java 7 Sep 2002 00:05:31 -0000 1.80
@@ -63,6 +63,7 @@
import org.apache.axis.Message;
import org.apache.axis.MessageContext;
import org.apache.axis.SimpleTargetedChain;
+import org.apache.axis.Constants;
import org.apache.axis.client.AxisClient;
import org.apache.axis.configuration.EngineConfigurationFactoryFinder;
import org.apache.axis.utils.ClassUtils;
@@ -479,7 +480,7 @@
h = msgContext.getService();
}
if (h == null)
- throw new AxisFault("Server.NoService",
+ throw new AxisFault(Constants.QNAME_NO_SERVICE_FAULT_CODE,
JavaUtils.getMessage("noService05",
"" + msgContext.getTargetService()),
null, null );
1.88 +7 -0 xml-axis/java/src/org/apache/axis/Constants.java
Index: Constants.java
===================================================================
RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/Constants.java,v
retrieving revision 1.87
retrieving revision 1.88
diff -u -r1.87 -r1.88
--- Constants.java 4 Sep 2002 14:14:28 -0000 1.87
+++ Constants.java 7 Sep 2002 00:05:31 -0000 1.88
@@ -515,6 +515,13 @@
public static final QName QNAME_LITERAL_ITEM = new QName(URI_LITERAL_ENC,"item");
public static final QName QNAME_RPC_RESULT = new QName(URI_SOAP12_RPC,"result");
+ //QNames of well known faults
+ /**
+ * the no-service fault value
+ */
+ public static final QName QNAME_NO_SERVICE_FAULT_CODE
+ = new QName(NS_URI_AXIS, "Server.NoService");
+
// Misc Strings
//////////////////////////////////////////////////////////////////////////