axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hemap...@apache.org
Subject svn commit: r155174 - webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/providers/RawXMLProvider.java
Date Thu, 24 Feb 2005 06:07:47 GMT
Author: hemapani
Date: Wed Feb 23 22:07:44 2005
New Revision: 155174

URL: http://svn.apache.org/viewcvs?view=rev&rev=155174
Log:
better error message for the doc-lit style when using the RawXMLProvider in case the SOAPAction
is missing

Modified:
    webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/providers/RawXMLProvider.java

Modified: webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/providers/RawXMLProvider.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/providers/RawXMLProvider.java?view=diff&r1=155173&r2=155174
==============================================================================
--- webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/providers/RawXMLProvider.java
(original)
+++ webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/providers/RawXMLProvider.java
Wed Feb 23 22:07:44 2005
@@ -18,6 +18,7 @@
 import org.apache.axis.Constants;
 import org.apache.axis.context.MessageContext;
 import org.apache.axis.context.SessionContext;
+import org.apache.axis.description.AxisOperation;
 import org.apache.axis.description.AxisService;
 import org.apache.axis.engine.AxisFault;
 import org.apache.axis.engine.Provider;
@@ -131,8 +132,12 @@
 
             // find the WebService method
             Class ImplClass = obj.getClass();
-            String methodName =
-                    msgContext.getOperation().getName().getLocalPart();
+            
+            AxisOperation op = msgContext.getOperation();
+            if(op == null){
+                throw new AxisFault("Operation is not located, if this is doclit style the
SOAP-ACTION should specified via the SOAP Action to use the RawXMLProvider");
+            }
+            String methodName = op.getName().getLocalPart();
             Method[] methods = ImplClass.getMethods();
             for (int i = 0; i < methods.length; i++) {
                 if (methods[i].getName().equals(methodName)) {



Mime
View raw message