diff options
author | shankar | 2010-04-05 14:02:51 +0000 |
---|---|---|
committer | shankar | 2010-04-05 14:02:51 +0000 |
commit | 9719eff91e5fc7382d3ae42dd50580c638f63b93 (patch) | |
tree | 9868734b14eb9092b196130a65a40762cb519ac6 /axiom/src/soap/soap_body.c | |
parent | ee9d060d4221963c6e5bf5950a7e9b99c10cba29 (diff) | |
download | axis2c-9719eff91e5fc7382d3ae42dd50580c638f63b93.tar.gz axis2c-9719eff91e5fc7382d3ae42dd50580c638f63b93.tar.bz2 |
Fixing invalid error loggings
git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@930860 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'axiom/src/soap/soap_body.c')
-rw-r--r-- | axiom/src/soap/soap_body.c | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/axiom/src/soap/soap_body.c b/axiom/src/soap/soap_body.c index 8fb7d8f..69ee7ae 100644 --- a/axiom/src/soap/soap_body.c +++ b/axiom/src/soap/soap_body.c @@ -144,21 +144,26 @@ axiom_soap_body_has_fault( } else { - while(!axiom_node_is_complete(soap_body->om_ele_node, env)) + /* This soap body could have been built programatically. Do the following only if soap + * body is created from soap_builder */ + if(soap_body->soap_builder) { - if(axiom_soap_builder_next(soap_body->soap_builder, env) != AXIS2_SUCCESS) + while(!axiom_node_is_complete(soap_body->om_ele_node, env)) { - /* problem in building the SOAP body. Note that has_fault is about soap fault, - * not about problem in building the node. So, even though there is a problem - * building the body, has_fault should be AXIS2_FALSE - */ - break; - } + if(axiom_soap_builder_next(soap_body->soap_builder, env) != AXIS2_SUCCESS) + { + /* problem in building the SOAP body. Note that has_fault is about soap fault, + * not about problem in building the node. So, even though there is a problem + * building the body, has_fault should be AXIS2_FALSE + */ + break; + } - if(soap_body->soap_fault) - { - soap_body->has_fault = AXIS2_TRUE; - break; + if(soap_body->soap_fault) + { + soap_body->has_fault = AXIS2_TRUE; + break; + } } } } |