Hi all, im facing a little problem about how to get a message inside a SoapFault, and capture it into a String.

i have a catch exception like this.

Code:
catch (MessageHandlingException ex) {

//Line 1	    Soap12Fault SoapMessage = (Soap12Fault) ((SoapFaultClientException) ex.getCause()).getSoapFault();
	    Iterator<QName> it = SoapMessage.getFaultSubcodes();

	    while (it.next() != null) {

		System.out.println(it.hasNext()));

		return "error";
	    }
just for testing, trying to get the message.

the tree that i want to walk is like this:
ex (the exception)
|__cause
|__detailMesage
|__faultMessage
|__soapFault (this is the important one)
|__axiomElement (inside this are: attributes, builder, done, e, factory, firstChild,LastChild (wich inside this is the soapDetail string, the one i wish to capture)
|__axiomFactory

with te code posted in line 1, i only reach to cause.soapFault, but i dont know how to get the axiomElement to get the message.

please this thing its driving me crazy, any help would be aprecciated.

thanks!