axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From manj...@apache.org
Subject svn commit: r735654 - /webservices/axis2/trunk/c/src/core/transport/http/sender/http_transport_sender.c
Date Mon, 19 Jan 2009 10:55:22 GMT
Author: manjula
Date: Mon Jan 19 02:55:21 2009
New Revision: 735654

URL: http://svn.apache.org/viewvc?rev=735654&view=rev
Log:
Fixes for Axis2C-1331.

Modified:
    webservices/axis2/trunk/c/src/core/transport/http/sender/http_transport_sender.c

Modified: webservices/axis2/trunk/c/src/core/transport/http/sender/http_transport_sender.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/transport/http/sender/http_transport_sender.c?rev=735654&r1=735653&r2=735654&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/core/transport/http/sender/http_transport_sender.c (original)
+++ webservices/axis2/trunk/c/src/core/transport/http/sender/http_transport_sender.c Mon Jan
19 02:55:21 2009
@@ -189,6 +189,7 @@
     axutil_param_t *write_xml_declaration_param = NULL;
     axutil_hash_t *transport_attrs = NULL;
     axis2_bool_t write_xml_declaration = AXIS2_FALSE;
+    axis2_bool_t fault = AXIS2_FALSE;
 
     AXIS2_LOG_TRACE(env->log, AXIS2_LOG_SI, 
         "Entry:axis2_http_transport_sender_invoke");
@@ -425,7 +426,7 @@
             if (AXIS2_TRUE == axis2_msg_ctx_get_doing_rest(msg_ctx, env))
             {
                 axiom_node_t *body_node = NULL;
-                axis2_bool_t fault = AXIS2_FALSE;
+                /* axis2_bool_t fault = AXIS2_FALSE;*/
                 axiom_soap_fault_t *soap_fault;
                 axiom_soap_body_t *soap_body =
                     axiom_soap_envelope_get_body(soap_data_out, env);
@@ -521,11 +522,17 @@
             }
             else
             {
+                axiom_soap_body_t *body = NULL;
+
+
+                body = axiom_soap_envelope_get_body(soap_data_out, env);
+                fault = axiom_soap_body_has_fault (body, env);
+
                 /* SOAP Processing */
                 axiom_output_set_do_optimize(om_output, env, do_mtom);
                 axiom_soap_envelope_serialize(soap_data_out, env, om_output,
                                               AXIS2_FALSE);
-                if (do_mtom)
+                if (do_mtom && !fault)
                 {
                     axis2_status_t mtom_status = AXIS2_FAILURE;
                     axis2_char_t *content_type = NULL;



Mime
View raw message