Author: nandika
Date: Sun Nov 11 21:24:35 2007
New Revision: 594025

URL: http://svn.apache.org/viewvc?rev=594025&view=rev
Log:
 processing logic added for action part in ContentType header

Modified:
    
webservices/axis2/trunk/c/src/core/transport/http/util/http_transport_utils.c

Modified: 
webservices/axis2/trunk/c/src/core/transport/http/util/http_transport_utils.c
URL: 
http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/transport/http/util/http_transport_utils.c?rev=594025&r1=594024&r2=594025&view=diff
==============================================================================
--- 
webservices/axis2/trunk/c/src/core/transport/http/util/http_transport_utils.c 
(original)
+++ 
webservices/axis2/trunk/c/src/core/transport/http/util/http_transport_utils.c 
Sun Nov 11 21:24:35 2007
@@ -231,8 +231,13 @@
         {
             soap_action[soap_action_len - 2] = '\0';
         }
+    }else{
+    /** soap action is null, check whether soap action is in content_type 
header */
+        soap_action = 
axis2_http_transport_utils_get_value_from_content_type(env,
+                content_type, "action");
     }
 
+
     headers = axis2_msg_ctx_get_transport_headers(msg_ctx, env);
     if (headers)
     {
@@ -323,7 +328,13 @@
         AXIS2_FREE(env->allocator, mime_boundary);
     }
 
+    if(soap_action_header){
     axis2_msg_ctx_set_soap_action(msg_ctx, env, soap_action_header);
+    }else{
+        axutil_string_t *soap_action_str = NULL;
+        soap_action_str = axutil_string_create(env,soap_action);
+        axis2_msg_ctx_set_soap_action(msg_ctx, env, soap_action_str);
+    }
     axis2_msg_ctx_set_to(msg_ctx, env, axis2_endpoint_ref_create(env,
                                                                  request_uri));
 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to