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 na...@apache.org on 2008/05/10 17:22:44 UTC

svn commit: r655108 - /webservices/axis2/trunk/c/src/core/transport/http/server/apache2/apache2_worker.c

Author: nandika
Date: Sat May 10 08:22:44 2008
New Revision: 655108

URL: http://svn.apache.org/viewvc?rev=655108&view=rev
Log:
null checking added for soap action header creation

Modified:
    webservices/axis2/trunk/c/src/core/transport/http/server/apache2/apache2_worker.c

Modified: webservices/axis2/trunk/c/src/core/transport/http/server/apache2/apache2_worker.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/transport/http/server/apache2/apache2_worker.c?rev=655108&r1=655107&r2=655108&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/core/transport/http/server/apache2/apache2_worker.c (original)
+++ webservices/axis2/trunk/c/src/core/transport/http/server/apache2/apache2_worker.c Sat May 10 08:22:44 2008
@@ -155,6 +155,7 @@
     axis2_transport_in_desc_t *in_desc = NULL;
     axis2_char_t *http_version = NULL;
     axutil_string_t *soap_action = NULL;
+    axis2_char_t *soap_action_header_txt = NULL;
     axis2_bool_t processed = AXIS2_FALSE;
     int content_length = -1;
     axis2_char_t *encoding_header_value = NULL;
@@ -388,10 +389,12 @@
         }
     }
 
-    soap_action = axutil_string_create(env,
-                                       (axis2_char_t *) apr_table_get(request->
-                                                                      headers_in,
-                                                                      AXIS2_HTTP_HEADER_SOAP_ACTION));
+    soap_action_header_txt = (axis2_char_t *) apr_table_get(request->headers_in,AXIS2_HTTP_HEADER_SOAP_ACTION);
+
+    if(soap_action_header_txt){
+	    soap_action = axutil_string_create(env, soap_action_header_txt);
+    }
+    
     request_body = axutil_stream_create_apache2(env, request);
     if (!request_body)
     {



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