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/12/12 05:59:33 UTC

svn commit: r486024 - /webservices/axis2/trunk/c/modules/core/transport/http/sender/soap_over_http_sender.c

Author: samisa
Date: Mon Dec 11 20:59:32 2006
New Revision: 486024

URL: http://svn.apache.org/viewvc?view=rev&rev=486024
Log:
Fixed SOAP 1.2 SOAP action problem in case of using MTOM

Modified:
    webservices/axis2/trunk/c/modules/core/transport/http/sender/soap_over_http_sender.c

Modified: webservices/axis2/trunk/c/modules/core/transport/http/sender/soap_over_http_sender.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/transport/http/sender/soap_over_http_sender.c?view=diff&rev=486024&r1=486023&r2=486024
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/sender/soap_over_http_sender.c (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/sender/soap_over_http_sender.c Mon Dec 11 20:59:32 2006
@@ -361,11 +361,25 @@
                 AXIS2_HTTP_HEADER_TRANSFER_ENCODING_CHUNKED);
         AXIS2_HTTP_SIMPLE_REQUEST_ADD_HEADER(request, env, http_header);
     }
-    /* TODO we need to set the content type with soap action header for soap12*/
+    
     if (doing_mtom)
     {
         content_type = (axis2_char_t *)AXIOM_OUTPUT_GET_CONTENT_TYPE(sender_impl->om_output,
                 env);
+        if (AXIS2_TRUE != AXIS2_MSG_CTX_GET_IS_SOAP_11(msg_ctx, env))
+        {
+            /* handle SOAP action for SOAP 1.2 case */
+            if (axis2_strcmp(soap_action, ""))
+            {
+                axis2_char_t *temp_content_type = NULL;
+                temp_content_type = AXIS2_STRACAT(content_type, ";action=", env);
+                AXIS2_FREE(env->allocator, content_type);
+                content_type = temp_content_type;
+                temp_content_type = AXIS2_STRACAT(content_type, soap_action, env);
+                AXIS2_FREE(env->allocator, content_type);
+                content_type = temp_content_type;
+            }
+        }
     }
     else if (AXIS2_TRUE == AXIS2_MSG_CTX_GET_IS_SOAP_11(msg_ctx, env))
     {



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