I think you should open a JIRA report [1] for this issue.

Andreas

[1] https://issues.apache.org/jira/browse/AXIS2

On Mon, May 9, 2011 at 10:25, franvk <[email protected]> wrote:
>
> Hi!
>
> I am using Sandesha2 module and when I provoke a MessageNumberRollover
> fault, it responds with the fault, but it only includes in the Detail
> element a "wsrm:Identifier" child. The WS-RM spec says that it is mandatory
> to send an Identifier child and a "MaxMsgNumber" child.
>
> http://old.nabble.com/file/p31574894/Dibujo.jpeg
>
> I have been looking up the source code of axis2 1.5.1 and I found a problem
> in AxisFault.java (located in org.apache.axis2.AxisFault.java):
>
> private void initializeValues(SOAPFaultCode soapFaultCode,
>                                       SOAPFaultReason soapFaultReason,
>                                       SOAPFaultNode soapFaultNode,
>                                       SOAPFaultRole soapFaultRole,
>                                       SOAPFaultDetail soapFaultDetail) {
>             this.soapFaultCode = soapFaultCode;
>             this.soapFaultReason = soapFaultReason;
>             this.soapFaultNode = soapFaultNode;
>             this.soapFaultRole = soapFaultRole;
>             this.soapFaultDetail = soapFaultDetail;
>
>             if (soapFaultDetail != null) {
>     //            OMElement exceptionElement =
> soapFaultDetail.getFirstChildWithName(
>     //                    new
> QName(SOAPConstants.SOAP_FAULT_DETAIL_EXCEPTION_ENTRY));
>     //            if (exceptionElement != null &&
> exceptionElement.getText() != null) {
>     //                cause = new Exception(exceptionElement.getText());
>     //            }
>
>                 // TODO - Wha? Details can have multiple elements, why take
> the first child here?
>                 // TODO - Review the API for details
>                 // setting the first child element of the fault detail as
> this.detail
>                 this.detail = soapFaultDetail.getFirstElement();
>
>             }
>
> I think this can be considered a bug that now is not fixed.
>
> Let me know if I am wrong.
>
> Thanks,
>
> Fran.
> --
> View this message in context: 
> http://old.nabble.com/SOAP-Fault-Detail-element-cannot-have-two-childs--tp31574894p31574894.html
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to