Package org.jibx.ws.context

Examples of org.jibx.ws.context.MessageContext


    /**
     * {@inheritDoc}
     */
    public void invoke(OutConnection oconn, InConnection iconn) throws IOException, WsException {
        MessageContext msgCtx = m_exchangeCtx.getCurrentMessageContext();
        while (msgCtx != null) {
            if (msgCtx.isOutbound()) {
                sendMessage(oconn);
            } else {
                receiveMessage(iconn);
            }
            m_exchangeCtx.switchMessageContext();
View Full Code Here


            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;
View Full Code Here

   
    /**
     * {@inheritDoc}
     */
    public void invoke(OutConnection oconn, InConnection iconn) throws IOException, WsException {
        MessageContext msgCtx = m_exchangeCtx.getCurrentMessageContext();
        while (msgCtx != null) {
            if (msgCtx.isOutbound()) {
                sendMessage(oconn);
            } else {
                receiveMessage(iconn);
            }
            m_exchangeCtx.switchMessageContext();
View Full Code Here

TOP

Related Classes of org.jibx.ws.context.MessageContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.