I get this exception because response is soapFault. Is there options how I can get whole xml response from this exception ? I need this because important content of this xml inst in ex.getFaultStringOrReason() but as comment at the end of this xml
How can I get the whole xml response from SoapFaultClientException
4.7k views Asked by hudi At
1
ex.getSoapFault().getSource()will give you aSourcewhich you can then inspect manually or marshall.(e.g. with
TransformerFactory.newInstance().newTransformer().transform(source, new StringResult()then calltoString()on the StringResult)