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 ro...@apache.org on 2008/04/24 18:26:19 UTC

svn commit: r651306 - in /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2: client/ServiceClient.java description/AxisService.java

Author: rott
Date: Thu Apr 24 09:26:15 2008
New Revision: 651306

URL: http://svn.apache.org/viewvc?rev=651306&view=rev
Log:
AXIS2-3730 sandesha needs to be able to recognize jaxws-originated anon operations

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/client/ServiceClient.java
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisService.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/client/ServiceClient.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/client/ServiceClient.java?rev=651306&r1=651305&r2=651306&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/client/ServiceClient.java (original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/client/ServiceClient.java Thu Apr 24 09:26:15 2008
@@ -53,6 +53,8 @@
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 
+import org.apache.axis2.namespace.Constants;
+
 import javax.wsdl.Definition;
 import javax.xml.namespace.QName;
 import java.net.URL;
@@ -76,14 +78,13 @@
     /** Counter used to generate the anonymous service name. */
     private static Counter anonServiceCounter = new Counter();
 
-
     /**
      * Operation name used for an anonymous out-only operation (meaning we send
      * a message with no response allowed from the service, equivalent to a WSDL
      * In-Only operation).
      */
     public static final QName ANON_OUT_ONLY_OP = new QName(
-            "anonOutonlyOp");
+            Constants.AXIS2_NAMESPACE_URI, "anonOutonlyOp", Constants.AXIS2_NAMESPACE_PREFIX);
 
     /**
      * Operation name used for an anonymous robust-out-only operation
@@ -91,13 +92,13 @@
      * equivalent to a WSDL Robust-In-Only operation).
      */
     public static final QName ANON_ROBUST_OUT_ONLY_OP = new QName(
-            "anonRobustOp");
+            Constants.AXIS2_NAMESPACE_URI, "anonRobustOp", Constants.AXIS2_NAMESPACE_PREFIX);
 
     /**
      * Operation name used for an anonymous in-out operation (meaning we sent a
      * message and receive a response, equivalent to a WSDL In-Out operation).
      */
-    public static final QName ANON_OUT_IN_OP = new QName("anonOutInOp");
+    public static final QName ANON_OUT_IN_OP = new QName(Constants.AXIS2_NAMESPACE_URI, "anonOutInOp", Constants.AXIS2_NAMESPACE_PREFIX);
 
     // the meta-data of the service that this client access
     private AxisService axisService;

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisService.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisService.java?rev=651306&r1=651305&r2=651306&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisService.java (original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisService.java Thu Apr 24 09:26:15 2008
@@ -26,6 +26,7 @@
 import org.apache.axis2.addressing.AddressingHelper;
 import org.apache.axis2.addressing.EndpointReference;
 import org.apache.axis2.client.Options;
+import org.apache.axis2.client.ServiceClient;
 import org.apache.axis2.context.MessageContext;
 import org.apache.axis2.context.ServiceContext;
 import org.apache.axis2.dataretrieval.AxisDataLocator;
@@ -623,6 +624,15 @@
 	 */
 	public void addOperation(AxisOperation axisOperation) {
 		axisOperation.setParent(this);
+        
+        if (log.isDebugEnabled()) {
+            if (axisOperation.getName().equals(ServiceClient.ANON_OUT_ONLY_OP)
+                    || (axisOperation.getName().equals(ServiceClient.ANON_OUT_ONLY_OP))
+                    || (axisOperation.getName().equals(ServiceClient.ANON_OUT_ONLY_OP))) {
+                log.debug("Client-defined operation name matches default operation name. "
+                        + "this may cause interoperability issues.  Name is: " + axisOperation.getName().toString());
+            }
+        }
 
 		Iterator modules = getEngagedModules().iterator();
 



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