Examples of MsgBoxOperations


Examples of edu.indiana.extreme.www.xgws.msgbox.util.MsgBoxOperations

      throw new org.apache.axis2.AxisFault(
          "Operation is not located, if this is doclit style the SOAP-ACTION should specified via the SOAP Action to use the RawXMLProvider");
    }

    String operationName = getOperationName(msgContext);
    MsgBoxOperations msgType = MsgBoxOperations.valueFrom(operationName);
    SOAPEnvelope enlp = msgContext.getEnvelope();
    // set messageboxId
    String clientId = null;
    String toAddress = msgContext.getTo().getAddress();
    int biginIndex = toAddress.indexOf("clientid");
View Full Code Here

Examples of org.apache.airavata.wsmg.msgbox.util.MsgBoxOperations

        OMElement response = null;

        try {

            String operationName = getOperationName(inMsgContext);
            MsgBoxOperations msgType = MsgBoxOperations.valueFrom(operationName);

            switch (msgType) {

            case STORE_MSGS: {
                SOAPEnvelope enlp = inMsgContext.getEnvelope();
                OMElement message = enlp.getBody().getFirstElement();
                String msgBoxId = getClientId(inMsgContext);
                String messageId = inMsgContext.getMessageID();
                String soapAction = inMsgContext.getSoapAction();
                response = skel.storeMessages(msgBoxId, messageId, soapAction, message);
                break;
            }

            case DESTROY_MSGBOX: {
                String msgBoxId = getClientId(inMsgContext);
                response = skel.destroyMsgBox(msgBoxId);
                break;
            }

            case TAKE_MSGS: {
                String msgBoxId = getClientId(inMsgContext);
                response = skel.takeMessages(msgBoxId);
                break;
            }

            case CREATE_MSGBOX: {
                response = skel.createMsgBox();
                break;
            }
            default:
                throw new AxisFault("unsupported operation" + msgType.toString());
            }

        } catch (AxisFault afe) {
            throw afe;
        } catch (Exception e) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.