Package org.apache.axis2.description

Examples of org.apache.axis2.description.OutInAxisOperation


        if (axisService != null) {
            OutOnlyAxisOperation outOnlyOperation =
                    new OutOnlyAxisOperation(ServiceClient.ANON_OUT_ONLY_OP);
            axisService.addOperation(outOnlyOperation);

            OutInAxisOperation outInOperation =
                    new OutInAxisOperation(ServiceClient.ANON_OUT_IN_OP);
            axisService.addOperation(outInOperation);
        }
    }
View Full Code Here


    // this does not work when there is a terminateSequnceResponse
    // TODO do processing of terminateMessagesCorrectly., create a new
    // message instead of sendign the one given by the serviceClient
    // TODO important

    AxisOperation outInAxisOp = new OutInAxisOperation(new QName("temp"));

    AxisOperation referenceInOutOperation = msgContext.getAxisService()
        .getOperation(
            new QName(Sandesha2Constants.RM_IN_OUT_OPERATION_NAME));
    if (referenceInOutOperation == null) {
      String messge = "Cant find the recerence RM InOut operation";
      throw new SandeshaException(messge);
    }

    outInAxisOp.setParent(msgContext.getAxisService());
    // setting flows
    // outInAxisOp.setRemainingPhasesInFlow(referenceInOutOperation.getRemainingPhasesInFlow());
    outInAxisOp.setRemainingPhasesInFlow(referenceInOutOperation
        .getRemainingPhasesInFlow());

    OperationContext opcontext = OperationContextFactory
        .createOperationContext(
            WSDL20_2004Constants.MEP_CONSTANT_OUT_IN, outInAxisOp);
View Full Code Here

    // this does not work when there is a closeSequnceResponse
    // TODO do processing of closeMessagesCorrectly., create a new
    // message instead of sendign the one given by the serviceClient
    // TODO important

    AxisOperation outInAxisOp = new OutInAxisOperation(new QName("temp"));

    AxisOperation referenceInOutOperation = msgContext.getAxisService()
        .getOperation(
            new QName(Sandesha2Constants.RM_IN_OUT_OPERATION_NAME));
    if (referenceInOutOperation == null) {
      String messge = "Cant find the recerence RM InOut operation";
      throw new SandeshaException(messge);
    }

    outInAxisOp.setParent(msgContext.getAxisService());
    // setting flows
    // outInAxisOp.setRemainingPhasesInFlow(referenceInOutOperation.getRemainingPhasesInFlow());
    outInAxisOp.setRemainingPhasesInFlow(referenceInOutOperation
        .getRemainingPhasesInFlow());

    OperationContext opcontext = OperationContextFactory
        .createOperationContext(
            WSDL20_2004Constants.MEP_CONSTANT_OUT_IN, outInAxisOp);
View Full Code Here

    private ServiceClient getServiceClient(QName rstQn,
                                           String issuerAddress) throws AxisFault {
        AxisService axisService =
                new AxisService("SecurityTokenService" + UUIDGenerator.getUUID());
        axisService.setClientSide(true);
        AxisOperation operation = new OutInAxisOperation(rstQn);
        axisService.addOperation(operation);
        ServiceClient client = new ServiceClient(this.configCtx, axisService);

        if (this.options != null) {
            client.setOptions(options);
View Full Code Here

    private ServiceClient getServiceClient(QName rstQn,
                                           String issuerAddress) throws AxisFault {
        AxisService axisService =
                new AxisService("SecurityTokenService" + UUIDGenerator.getUUID());
        axisService.setClientSide(true);
        AxisOperation operation = new OutInAxisOperation(rstQn);
        axisService.addOperation(operation);
        ServiceClient client = new ServiceClient(this.configCtx, axisService);

        if (this.options != null) {
            client.setOptions(options);
View Full Code Here

        axisServiceGroup.addService(axisService);
        ServiceGroupContext gCtx = ctx.getConfigurationContext().createServiceGroupContext(axisServiceGroup);
        ServiceContext serviceContext = gCtx.getServiceContext(axisService);
        ctx.setServiceContext(serviceContext);
        ctx.setAxisService(axisService);
        OutInAxisOperation outInAxisOperation = new OutInAxisOperation(new QName("http://rampart.org", "test"));
        AxisMessage msg = new AxisMessage();
        outInAxisOperation.addMessage(msg,WSDLConstants.MESSAGE_LABEL_OUT_VALUE);
        outInAxisOperation.addMessage(msg,WSDLConstants.MESSAGE_LABEL_IN_VALUE);
        ctx.setAxisOperation(outInAxisOperation);
        ctx.setAxisMessage(msg);
        Options options = new Options();
        options.setAction("urn:testOperation");
        ctx.setOptions(options);
View Full Code Here

        OutOnlyAxisOperation outOnlyOperation = new OutOnlyAxisOperation(
                ANON_OUT_ONLY_OP);
        axisService.addOperation(outOnlyOperation);

        OutInAxisOperation outInOperation = new OutInAxisOperation(
                ANON_OUT_IN_OP);
        axisService.addOperation(outInOperation);
        return axisService;
    }
View Full Code Here

        MessageContext requestContext = ClientUtil.getMessageContext(this);
        try {
            options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
            QName opName = new QName("urn:GoogleSearch", "doGoogleSearch");
            AxisOperation opdesc = new OutInAxisOperation();
            opdesc.setName(opName);
            //   AxisOperation opdesc = new AxisOperation(new QName("viewVersion"));
            ServiceClient serviceClient = new ServiceClient();
            serviceClient.setOptions(options);
            OperationClient opClient = serviceClient.createClient(ServiceClient.ANON_OUT_IN_OP);
            opClient.addMessageContext(requestContext);
View Full Code Here

    private ServiceClient getServiceClient(QName rstQn,
                                           String issuerAddress) throws AxisFault {
        AxisService axisService =
                new AxisService("SecurityTokenService" + UUIDGenerator.getUUID());
        axisService.setClientSide(true);
        AxisOperation operation = new OutInAxisOperation(rstQn);
        axisService.addOperation(operation);
        ServiceClient client = new ServiceClient(this.configCtx, axisService);

        if (this.options != null) {
            client.setOptions(options);
View Full Code Here

    //this does not work when there is a terminateSequnceResponse
    //TODO do processing of terminateMessagesCorrectly., create a new message instead of sendign the one given by the serviceClient
    //TODO important
    try {
      AxisOperation oldOPeration = msgContext.getAxisOperation();
      AxisOperation outInAxisOp = new OutInAxisOperation (new QName ("temp"));
      //setting flows
      outInAxisOp.setRemainingPhasesInFlow(oldOPeration.getRemainingPhasesInFlow());
     
      OperationContext opcontext = OperationContextFactory.createOperationContext(OperationContextFactory.MEP_CONSTANT_OUT_IN,outInAxisOp);
        opcontext.setParent(msgContext.getServiceContext());
      configurationContext.registerOperationContext(rmMsgCtx.getMessageId(),opcontext);
    } catch (AxisFault e1) {
View Full Code Here

TOP

Related Classes of org.apache.axis2.description.OutInAxisOperation

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.