m_outCtx.setBodyWriter(getBodyWriter());
}
m_inCtx = new InContext();
if (m_inHeaderHandlers != null) {
for (Iterator iter = m_inHeaderHandlers.iterator(); iter.hasNext();) {
InHandler handler = (InHandler) iter.next();
m_inCtx.addHandler(SoapPhase.HEADER, handler);
}
}
if (getBodyReader() != null) {
m_inCtx.setBodyReader(getBodyReader());
}
if (m_inFaultDetailsHandlers != null) {
for (Iterator iter = m_inFaultDetailsHandlers.iterator(); iter.hasNext();) {
InHandler handler = (InHandler) iter.next();
m_inCtx.addHandler(SoapPhase.BODY_FAULT, handler);
}
}
m_processor = (SoapProcessor) m_protocol.createProcessor(ExchangeContext.createOutInExchange(m_outCtx, m_inCtx));
m_processor.setSoapEncodingStyle(m_encodingStyle);