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/25 08:46:40 UTC

svn commit: r388721 - in /webservices/axis2/trunk/c/modules: core/receivers/raw_xml_in_out_msg_recv.c mod_addr/addr_out_handler.c

Author: samisa
Date: Fri Mar 24 23:46:39 2006
New Revision: 388721

URL: http://svn.apache.org/viewcvs?rev=388721&view=rev
Log:
Fixes to get one way services and clients working

Modified:
    webservices/axis2/trunk/c/modules/core/receivers/raw_xml_in_out_msg_recv.c
    webservices/axis2/trunk/c/modules/mod_addr/addr_out_handler.c

Modified: webservices/axis2/trunk/c/modules/core/receivers/raw_xml_in_out_msg_recv.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/receivers/raw_xml_in_out_msg_recv.c?rev=388721&r1=388720&r2=388721&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/receivers/raw_xml_in_out_msg_recv.c (original)
+++ webservices/axis2/trunk/c/modules/core/receivers/raw_xml_in_out_msg_recv.c Fri Mar 24 23:46:39 2006
@@ -227,7 +227,7 @@
         }
         else
         {
-            status = AXIS2_FAILURE;
+            status = AXIS2_ERROR_GET_STATUS_CODE((*env)->error);
         }
     }
     

Modified: webservices/axis2/trunk/c/modules/mod_addr/addr_out_handler.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/mod_addr/addr_out_handler.c?rev=388721&r1=388720&r2=388721&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/mod_addr/addr_out_handler.c (original)
+++ webservices/axis2/trunk/c/modules/mod_addr/addr_out_handler.c Fri Mar 24 23:46:39 2006
@@ -210,6 +210,8 @@
     addressing_namespace = axis2_om_namespace_create (env, addr_ns, AXIS2_WSA_DEFAULT_PREFIX);
     msg_info_headers = AXIS2_MSG_CTX_GET_MSG_INFO_HEADERS (msg_ctx, env);
     soap_envelope = AXIS2_MSG_CTX_GET_SOAP_ENVELOPE (msg_ctx, env);
+    if (!soap_envelope)
+        return AXIS2_SUCCESS; /* can happen in case of one way services/clients */
     soap_header  = AXIS2_SOAP_ENVELOPE_GET_HEADER (soap_envelope, env);
   
     if (!soap_header)