summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar damitha2010-07-07 03:34:36 +0000
committerGravatar damitha2010-07-07 03:34:36 +0000
commitc0ecd385d8578a5a3107f10961290b5638f013a8 (patch)
tree11d697d84034ea0ee65819847127667daa0a1674 /src
parent876bda819321a2632bdd30989030746f17e38770 (diff)
downloadaxis2c-c0ecd385d8578a5a3107f10961290b5638f013a8.tar.gz
axis2c-c0ecd385d8578a5a3107f10961290b5638f013a8.tar.bz2
code formatting
git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@961063 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/core/receivers/raw_xml_in_out_msg_recv.c110
1 files changed, 54 insertions, 56 deletions
diff --git a/src/core/receivers/raw_xml_in_out_msg_recv.c b/src/core/receivers/raw_xml_in_out_msg_recv.c
index b007ff3..c152a79 100644
--- a/src/core/receivers/raw_xml_in_out_msg_recv.c
+++ b/src/core/receivers/raw_xml_in_out_msg_recv.c
@@ -349,78 +349,76 @@ axis2_raw_xml_in_out_msg_recv_invoke_business_logic_sync(
{
if(axis2_msg_ctx_get_is_soap_11(msg_ctx, env))
{
-fault_value_str =
- AXIOM_SOAP_DEFAULT_NAMESPACE_PREFIX ":"
- AXIOM_SOAP11_FAULT_CODE_RECEIVER;
- }
- else
- {
- fault_value_str =
- AXIOM_SOAP_DEFAULT_NAMESPACE_PREFIX ":"
- AXIOM_SOAP12_SOAP_FAULT_VALUE_RECEIVER;
+ fault_value_str = AXIOM_SOAP_DEFAULT_NAMESPACE_PREFIX ":"
+ AXIOM_SOAP11_FAULT_CODE_RECEIVER;
+ }
+ else
+ {
+ fault_value_str = AXIOM_SOAP_DEFAULT_NAMESPACE_PREFIX ":"
+ AXIOM_SOAP12_SOAP_FAULT_VALUE_RECEIVER;
+ }
}
- }
- err_msg = AXIS2_ERROR_GET_MESSAGE(env->error);
- if (err_msg && axutil_strcmp(err_msg, ""))
- {
- if(!axutil_strcmp(err_msg, "No Error"))
+ err_msg = AXIS2_ERROR_GET_MESSAGE(env->error);
+ if (err_msg && axutil_strcmp(err_msg, ""))
{
- fault_reason_str = "An error has occurred, but could not determine exact details";
+ if(!axutil_strcmp(err_msg, "No Error"))
+ {
+ fault_reason_str = "An error has occurred, but could not determine exact details";
+ }
+ else
+ {
+ fault_reason_str = err_msg;
+ }
}
else
{
- fault_reason_str = err_msg;
+ fault_reason_str = "An error has occurred, but could not determine exact details";
}
- }
- else
- {
- fault_reason_str = "An error has occurred, but could not determine exact details";
- }
- soap_fault = axiom_soap_fault_create_default_fault(env, out_body, fault_value_str,
- fault_reason_str, soap_version);
+ soap_fault = axiom_soap_fault_create_default_fault(env, out_body, fault_value_str,
+ fault_reason_str, soap_version);
- if (fault_node)
- {
- axiom_node_t *fault_detail_node = NULL;
- axis2_char_t *om_str = NULL;
+ if (fault_node)
+ {
+ axiom_node_t *fault_detail_node = NULL;
+ axis2_char_t *om_str = NULL;
- fault_detail = axiom_soap_fault_detail_create_with_parent(env, soap_fault);
- fault_detail_node = axiom_soap_fault_detail_get_base_node(fault_detail, env);
+ fault_detail = axiom_soap_fault_detail_create_with_parent(env, soap_fault);
+ fault_detail_node = axiom_soap_fault_detail_get_base_node(fault_detail, env);
- om_str = axiom_node_to_string(fault_detail_node, env);
- if (om_str)
- {
- AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI, "fault_detail:%s", om_str);
- AXIS2_FREE(env->allocator, om_str);
- }
+ om_str = axiom_node_to_string(fault_detail_node, env);
+ if (om_str)
+ {
+ AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI, "fault_detail:%s", om_str);
+ AXIS2_FREE(env->allocator, om_str);
+ }
- axiom_soap_fault_detail_add_detail_entry(fault_detail, env, fault_node);
+ axiom_soap_fault_detail_add_detail_entry(fault_detail, env, fault_node);
+ }
}
-}
-if (body_content_node)
-{
- axiom_node_add_child(out_node, env, body_content_node);
- status = axis2_msg_ctx_set_soap_envelope(new_msg_ctx, env, default_envelope);
-}
-else if (soap_fault)
-{
- axis2_msg_ctx_set_soap_envelope(new_msg_ctx, env, default_envelope);
- status = AXIS2_SUCCESS;
-}
-else
-{
- /* we should free the memory as the envelope is not used, one way case */
- axiom_soap_envelope_free(default_envelope, env);
- default_envelope = NULL;
-}
+ if (body_content_node)
+ {
+ axiom_node_add_child(out_node, env, body_content_node);
+ status = axis2_msg_ctx_set_soap_envelope(new_msg_ctx, env, default_envelope);
+ }
+ else if (soap_fault)
+ {
+ axis2_msg_ctx_set_soap_envelope(new_msg_ctx, env, default_envelope);
+ status = AXIS2_SUCCESS;
+ }
+ else
+ {
+ /* we should free the memory as the envelope is not used, one way case */
+ axiom_soap_envelope_free(default_envelope, env);
+ default_envelope = NULL;
+ }
-AXIS2_LOG_TRACE(env->log, AXIS2_LOG_SI,
- "[axis2]Exit:axis2_raw_xml_in_out_msg_recv_invoke_business_logic_sync");
+ AXIS2_LOG_TRACE(env->log, AXIS2_LOG_SI,
+ "[axis2]Exit:axis2_raw_xml_in_out_msg_recv_invoke_business_logic_sync");
-return status;
+ return status;
}
AXIS2_EXPORT int