Hi all,
Ruwan, thanks for your reply. Please see my comments inline!
> In SOAP12 Faults the faultstring and faultcode is not present, So I
> guess you are getting a SOAP12 Fault to this particular code.
No, we are using SOAP11 and double-checked, that the same code works
with the Beta-2 version (using the same SOAP11 service).
Though Beta-2 seems to have another bug. For the following code
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.
Regards,
Eric
_______________________________________________
Esb-java-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev