axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dee...@apache.org
Subject svn commit: r395139 - in /webservices/axis2/trunk/java/modules/core/src/org/apache/axis2: client/ServiceClient.java util/Utils.java
Date Wed, 19 Apr 2006 05:37:27 GMT
Author: deepal
Date: Tue Apr 18 22:37:25 2006
New Revision: 395139

URL: http://svn.apache.org/viewcvs?rev=395139&view=rev
Log:
- fixing 500
- fixing default module version calculation

Modified:
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/client/ServiceClient.java
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/util/Utils.java

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/client/ServiceClient.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/client/ServiceClient.java?rev=395139&r1=395138&r2=395139&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/client/ServiceClient.java
(original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/client/ServiceClient.java
Tue Apr 18 22:37:25 2006
@@ -347,21 +347,11 @@
      *                   received in response (per the Robust In-Only MEP).
      */
     public void sendRobust(QName operation, OMElement elem) throws AxisFault {
-        // look up the appropriate axisop and create the client
-        // OperationClient mepClient = createClient(operation);
-
-        // create a message context with elem as the payload
-        /*
-         * MessageContext mc = new MessageContext(); SOAPEnvelope se =
-         * createEmptySOAPEnvelope(); se.getBody().addChild(se);
-         * mc.setEnvelope(se); // create a client and have it do the work of
-         * sending this out InOnlyMEPClient mepClient = new
-         * InOnlyMEPClient(serviceContext); mepClient.send("foo", mc);
-         */
-        // sendReceive(operation,elem);
-        throw new UnsupportedOperationException(
-                "ServiceClient.sendRobust is not yet implemented");
-
+        MessageContext mc = new MessageContext();
+        fillSoapEnvelope(mc, elem);
+        OperationClient mepClient = createClient(operation);
+        mepClient.addMessageContext(mc);
+        mepClient.execute(true);
     }
 
     /**

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/util/Utils.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/util/Utils.java?rev=395139&r1=395138&r2=395139&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/util/Utils.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/util/Utils.java Tue Apr
18 22:37:25 2006
@@ -281,7 +281,8 @@
             String moduleVersionString = getModuleVersion(moduleName.getLocalPart());
             String currentDefaultVerison = (String) defaultModules.get(moduleNameString);
             if (currentDefaultVerison != null) {
-                if (isLatest(moduleVersionString, currentDefaultVerison)) {
+                // if the module version is null then , that will be ignore in this case
+                if (moduleVersionString!=null&&isLatest(moduleVersionString, currentDefaultVerison))
{
                     defaultModules.put(moduleNameString, moduleVersionString);
                 }
             } else {



Mime
View raw message