public void processExchange(MessageExchange exchange) {
}
public void process(MessageExchange exchange) throws Exception {
NormalizedMessage nm = exchange.getMessage("in");
CxfBcProviderMessageObserver obs = new CxfBcProviderMessageObserver(exchange, this);
conduit.setMessageObserver(obs);
SoapMessage message = new SoapMessage(new MessageImpl());
message.put(MessageExchange.class, exchange);
Exchange cxfExchange = new ExchangeImpl();
message.setExchange(cxfExchange);
BindingOperationInfo boi = ei.getBinding().getOperation(exchange.getOperation());
cxfExchange.put(BindingOperationInfo.class, boi);
cxfExchange.put(Endpoint.class, ep);
PhaseChainCache outboundChainCache = new PhaseChainCache();
PhaseManager pm = getBus().getExtension(PhaseManager.class);
List<Interceptor> outList = new ArrayList<Interceptor>();
outList.add(new JbiOutWsdl1Interceptor());
outList.add(new SoapPreProtocolOutInterceptor());
outList.add(new SoapOutInterceptor(getBus()));
PhaseInterceptorChain outChain = outboundChainCache.get(pm.getOutPhases(), outList);
outChain.add(getOutInterceptors());
outChain.add(getOutFaultInterceptors());
message.setInterceptorChain(outChain);
InputStream is = JBIMessageHelper.convertMessageToInputStream(nm.getContent());
StreamSource source = new StreamSource(is);
message.setContent(Source.class, source);
message.setContent(InputStream.class, is);