You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ws.apache.org by "Andreas Veithen (JIRA)" <ji...@apache.org> on 2012/07/13 19:31:34 UTC

[jira] [Updated] (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.

     [ https://issues.apache.org/jira/browse/AXIOM-433?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Veithen updated AXIOM-433:
----------------------------------

    Component/s: DOOM
       Assignee: Andreas Veithen
    
> 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: DOOM, LLOM
>    Affects Versions: 1.2.13
>            Reporter: detelin20@yahoo.com
>            Assignee: Andreas Veithen
>             Fix For: 1.2.14
>
>
> 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