diff options
| author | Nicolas Clapies <nclapies@entrouvert.com> | 2005-11-15 11:06:58 +0000 |
|---|---|---|
| committer | Nicolas Clapies <nclapies@entrouvert.com> | 2005-11-15 11:06:58 +0000 |
| commit | de711ae1ead3d0827ef1965a36ddefdd13642081 (patch) | |
| tree | f97ccacf82ec706cf78cd0f91a2a3c86dcf7d4e2 | |
| parent | 367d20203bdfef998b4f12bfcd41702f2fcf8f2c (diff) | |
Check if a soap fault is found in response message. If no fault found, then set response.
| -rw-r--r-- | lasso/id-wsf/wsf_profile.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lasso/id-wsf/wsf_profile.c b/lasso/id-wsf/wsf_profile.c index 85e2e7c2..419c36f0 100644 --- a/lasso/id-wsf/wsf_profile.c +++ b/lasso/id-wsf/wsf_profile.c @@ -923,13 +923,10 @@ lasso_wsf_profile_process_soap_response_msg(LassoWsfProfile *profile, const gcha envelope = LASSO_SOAP_ENVELOPE(lasso_node_new_from_xmlNode(xmlDocGetRootElement(doc))); profile->soap_envelope_response = envelope; - + /* Soap Fault message */ - if (LASSO_IS_SOAP_FAULT(envelope->Body->any->data) == TRUE) - return -1; - - /* Soap Body message */ - profile->response = LASSO_NODE(envelope->Body->any->data); + if (LASSO_IS_SOAP_FAULT(envelope->Body->any->data) == FALSE) + profile->response = LASSO_NODE(envelope->Body->any->data); return 0; } |
