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 sa...@apache.org on 2006/03/26 09:55:22 UTC

svn commit: r388884 - /webservices/axis2/trunk/c/modules/core/clientapi/mep_client.c

Author: samisa
Date: Sat Mar 25 23:55:20 2006
New Revision: 388884

URL: http://svn.apache.org/viewcvs?rev=388884&view=rev
Log:
Fix to get one way working

Modified:
    webservices/axis2/trunk/c/modules/core/clientapi/mep_client.c

Modified: webservices/axis2/trunk/c/modules/core/clientapi/mep_client.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/clientapi/mep_client.c?rev=388884&r1=388883&r2=388884&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/clientapi/mep_client.c (original)
+++ webservices/axis2/trunk/c/modules/core/clientapi/mep_client.c Sat Mar 25 23:55:20 2006
@@ -581,8 +581,13 @@
     } 
     else 
     {
-        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_BLOCKING_INVOCATION_EXPECTS_RESPONSE, AXIS2_FAILURE);
-        return NULL;
+        /* if it is a two way message, then the status should be in error,
+           else it is a one way message */
+        if (AXIS2_ERROR_GET_STATUS_CODE((*env)->error) != AXIS2_SUCCESS)
+        {
+            AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_BLOCKING_INVOCATION_EXPECTS_RESPONSE, AXIS2_FAILURE);
+            return NULL;
+        }
     }
         
     /* property is NULL, and we set null for AXIS2_TRANSPORT_IN in msg_ctx to