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 2005/12/28 08:06:00 UTC

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

Author: samisa
Date: Tue Dec 27 23:05:56 2005
New Revision: 359427

URL: http://svn.apache.org/viewcvs?rev=359427&view=rev
Log:
More logic exposed related to SOAP envelope

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

Modified: webservices/axis2/trunk/c/modules/core/clientapi/src/mep_client.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/clientapi/src/mep_client.c?rev=359427&r1=359426&r2=359427&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/clientapi/src/mep_client.c (original)
+++ webservices/axis2/trunk/c/modules/core/clientapi/src/mep_client.c Tue Dec 27 23:05:56 2005
@@ -502,7 +502,7 @@
     axis2_msg_ctx_t *response = NULL;
     axis2_conf_ctx_t *conf_ctx = NULL;
     axis2_op_t *op = NULL;
-    /* TODO axis2_envelope_t *response_envelope = NULL;*/
+    axis2_soap_envelope_t *response_envelope = NULL;
     
     AXIS2_FUNC_PARAM_CHECK(msg_ctx, env, NULL);
 
@@ -540,20 +540,24 @@
 
     /* TODO response_envelope = TransportUtils.createSOAPMessage(response, msg_ctx.getEnvelope().getNamespace().getName());*/
 
-    /*TODO if (response_envelope != null) 
+    if (response_envelope) 
     {
-        AXIS2_MSG_CTX_SET_ENVELOPE(response, env, response_envelope);
+        AXIS2_MSG_CTX_SET_SOAP_ENVELOPE(response, env, response_envelope);
         engine = axis2_engine_create(env, conf_ctx);
-        status = AXIS2_ENGINE_RECEIVE(engine, ENV, response);
-        if (status != AXIS2_SUCCESS)
-            return NULL;
+        if (engine)
+        {
+            status = AXIS2_ENGINE_RECEIVE(engine, env, response);
+            if (status != AXIS2_SUCCESS)
+                return NULL;
+        }
         
     } 
     else 
     {
         AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_BLOCKING_INVOCATION_EXPECTS_RESPONSE, AXIS2_FAILURE);
         return NULL;
-    }*/
+    }
     
     return response;
 }
+