ws-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "detelin20@yahoo.com (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AXIOM-433) SOAPBodyImpl class from the APIs has got a flag for check hasFault and the flag is not synchronized with the SOAP Body's content.
Date Fri, 13 Jul 2012 13:35:33 GMT
detelin20@yahoo.com created AXIOM-433:
-----------------------------------------

             Summary: SOAPBodyImpl class from the APIs has got a flag for check hasFault and
the flag is not synchronized with the SOAP Body's content.
                 Key: AXIOM-433
                 URL: https://issues.apache.org/jira/browse/AXIOM-433
             Project: Axiom
          Issue Type: Bug
          Components: LLOM
    Affects Versions: 1.2.13
            Reporter: detelin20@yahoo.com


There is a use case where the implementation needs to remove the contents of the SOAPBody.
However there is a flag within the SOAPBodyImpl which checks whether the SOAPBody contains
a SOAPFault, and this flag is not updated with the removal of contents from under the SOAPBody.


The API we use is as follows:

to empty the contents of the SOAPBody
----------------------------------
SOAPBody soapBody = envelope.getBody();
Iterator<OMNode> iter = soapBody.getChildren();
while (iter.hasNext()){
   iter.next().detach();
}

-----------------------------------

to add SOAPFault
--------------------------------
((SOAPEnvelope)soapMessage).getBody().addFault();
--------------------------------

So basically the issue was the flag wasn't getting updated when we empty a SOAP message and
then add the SOAPFault.

My recommendation will be not to use the fault flag in the SOAP body at all, and always check
the actual everytime the call is made. This will save us from any sort of non-consistent state
between the flag and the actual content.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


Mime
View raw message