Hi again,
a short update from my side:
> if(axis2MessageCtx.getEnvelope().getBody().getFault() != null) {
> SOAPFault fault =
> axis2MessageCtx.getEnvelope().getBody().getFault();
> OMElement faultcode = (OMElement)
> fault.getChildrenWithLocalName("faultcode").next();
> messagePropertyDTO.setFaultCode(faultcode.getText());
> OMElement faultmessage = (OMElement)
> fault.getChildrenWithLocalName("faultstring").next();
> messagePropertyDTO.setFault(faultmessage.getText());
> }
>
> Faultcode and faultmessage contain the same values of "faultcode". So
> getChildrenWithLocalName() either always returns the first child or
> something like that. Before this code we used a solution were we
logged
> the whole fault. Error code and error message had been present.
>
> I guess this is more or less an Axiom related question. We'll try to
use
> some other Methods and see whether we can workaround this issue. Hope
> you can help.
If we use getChildrenWithName() instead of getChildrenWithLocalName()
(which seems to be somehow broken as described) the above code works
pretty fine with Beta 2, but not with 1.7 "final preview". Even if a
named property did not exist, I would not expect an exception.
Regards,
Eric
_______________________________________________
Esb-java-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev