args = new Object[m_idxs.m_paramCount];
if (m_idxs.m_payloadIndex != -1) {
args[m_idxs.m_payloadIndex] = payload;
}
if (m_idxs.m_inContextIndex != -1) {
MessageContext currentContext = processor.getCurrentMessageContext();
if (!(currentContext instanceof InContext)) {
throw new WsException(
"Error - attempt to invoke operation when current context is not an InContext");
}
args[m_idxs.m_inContextIndex] = currentContext;
}
if (m_idxs.m_outContextIndex != -1) {
MessageContext nextContext = processor.getNextMessageContext();
if (!(nextContext instanceof OutContext)) {
throw new WsException(
"Error - attempt to invoke 2-way operation when next message context is not an OutContext");
}
args[m_idxs.m_outContextIndex] = nextContext;