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/07/17 09:06:25 UTC

svn commit: r422643 - /webservices/axis2/trunk/c/modules/core/transport/http/http_transport_utils.c

Author: samisa
Date: Mon Jul 17 00:06:24 2006
New Revision: 422643

URL: http://svn.apache.org/viewvc?rev=422643&view=rev
Log:
Hacked code to get around MTOM serialization problem

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

Modified: webservices/axis2/trunk/c/modules/core/transport/http/http_transport_utils.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/transport/http/http_transport_utils.c?rev=422643&r1=422642&r2=422643&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/http_transport_utils.c (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/http_transport_utils.c Mon Jul 17 00:06:24 2006
@@ -1103,13 +1103,26 @@
             return NULL;
         }
         
+        soap_envelope = AXIOM_SOAP_BUILDER_GET_SOAP_ENVELOPE(soap_builder, env);
+        
         if (binary_data_map)
         {
             AXIOM_SOAP_BUILDER_SET_MIME_BODY_PARTS(soap_builder, env, 
                 binary_data_map);
         }
         
-        soap_envelope = AXIOM_SOAP_BUILDER_GET_SOAP_ENVELOPE(soap_builder, env);
+        if (soap_envelope && content_type)
+        {
+            /* hack to get around MTOM problem */
+            axiom_soap_body_t *soap_body = 
+                AXIOM_SOAP_ENVELOPE_GET_BODY(soap_envelope, env);
+
+            if (soap_body)
+            {
+                AXIOM_SOAP_BODY_HAS_FAULT(soap_body, env);
+            }
+        }
+        
         return soap_envelope;
     }
     else



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