private static String extractFaultDetail ( SoapFaultDetailElement detail ) { StringResult detailResult = new StringResult ( ) ; try { TransformerFactory transformerFactory = TransformerFactory . newInstance ( ) ; Transformer transformer = transformerFactory . newTransformer ( ) ; transformer . setOutputProperty ( OutputKeys . OMIT_XML_DECLARATION , "yes" ) ; transformer . transform ( detail . getSource ( ) , detailResult ) ; } catch ( TransformerException e ) { throw new CitrusRuntimeException ( e ) ; } return detailResult . toString ( ) ; }
Extracts fault detail string from soap fault detail instance . Transforms detail source into string and takes care .