InterceptorChain phase = getChain(Phase.ServerOutFault);
QName code = (QName) fault.getProperty("org.apache.servicemix.soap.fault.code");
String reason = (String) fault.getProperty("org.apache.servicemix.soap.fault.reason");
SoapFault soapFault = new SoapFault(code, reason, null, null, fault.getContent());
msg.setContent(Exception.class, soapFault);
phase.doIntercept(msg);
return session.createTextMessage(baos.toString());
}
public Message createError(MessageExchange exchange, Exception error, Session session, JmsContext context) throws Exception {
org.apache.servicemix.soap.api.Message in = ((Context) context).msg;