Examples of InOnlyAxisOperation


Examples of org.apache.axis2.description.InOnlyAxisOperation

            axisService.getAxisServiceGroup().addParameter(CarbonConstants.HIDDEN_SERVICE_PARAM_NAME, "true");
        }

        AxisOperation axisOperation = axisService.getOperation(new QName("", topicName));
        if (axisOperation == null) {
            axisOperation = new InOnlyAxisOperation(new QName("", topicName));
            axisOperation.setMessageReceiver(new SubscriptionMessageReceiver());
            axisOperation.setSoapAction("urn:" + topicName);


            axisConfiguration.getPhasesInfo().setOperationPhases(axisOperation);
View Full Code Here

Examples of org.apache.axis2.description.InOnlyAxisOperation

        service.setClassLoader(Thread.currentThread().getContextClassLoader());
        service.addParameter(new Parameter(
                Constants.SERVICE_CLASS, serviceClassName));

        // Adds an operation who's MEP is In-Only.
        AxisOperation operation = new InOnlyAxisOperation(operationName);
        operation.setMessageReceiver(new RawXMLINOnlyMessageReceiver());
        operation.setStyle(WSDLConstants.STYLE_RPC);
        service.addOperation(operation);

        return service;
    }
View Full Code Here

Examples of org.apache.axis2.description.InOnlyAxisOperation

        MessageContext messageContext = testMessageWithOmittedHeaders("noMessageID");
        String messageID = messageContext.getOptions().getMessageId();

        assertNull("The message id is not null.", messageID);

        AxisOperation axisOperation = new InOnlyAxisOperation();
        messageContext.setAxisOperation(axisOperation);
        AxisService axisService = new AxisService();
        messageContext.setAxisService(axisService);
        validationHandler.invoke(messageContext);
    }
View Full Code Here

Examples of org.apache.axis2.description.InOnlyAxisOperation

                                                        QName opName)
            throws AxisFault {
        AxisService service = new AxisService(serviceName.getLocalPart());
        service.setClassLoader(getContextClassLoader_DoPriv());

        AxisOperation axisOp = new InOnlyAxisOperation(opName);

        axisOp.setMessageReceiver(messageReceiver);
        axisOp.setStyle(WSDLConstants.STYLE_RPC);
        service.addOperation(axisOp);
        service.mapActionToOperation(Constants.AXIS2_NAMESPACE_URI + "/" + opName.getLocalPart(),
                                     axisOp);

        return service;
View Full Code Here

Examples of org.apache.axis2.description.InOnlyAxisOperation

            }

            if (mepURL == null) {

                // assuming in-out MEP
                op_descrip = new InOnlyAxisOperation();
            } else {
                try {
                    op_descrip = AxisOperationFactory.getOperationDescription(mepURL);
                } catch (AxisFault axisFault) {
                    throw new DeploymentException(
View Full Code Here

Examples of org.apache.axis2.description.InOnlyAxisOperation

        support = new InOnlyEndpointSupport<AxisMessage>();
    }
   
    @Override
    protected InOnlyAxisOperation createOperation() {
        InOnlyAxisOperation operation = new InOnlyAxisOperation(new QName("default"));
        operation.setMessageReceiver(new MessageReceiver() {
            public void receive(MessageContext messageCtx) throws AxisFault {
                AxisAsyncEndpoint.this.receive(messageCtx);
            }
        });
        return operation;
View Full Code Here

Examples of org.apache.axis2.description.InOnlyAxisOperation

                                                        QName opName)
            throws AxisFault {
        AxisService service = new AxisService(serviceName.getLocalPart());
        service.setClassLoader(getContextClassLoader_DoPriv());

        AxisOperation axisOp = new InOnlyAxisOperation(opName);

        axisOp.setMessageReceiver(messageReceiver);
        axisOp.setStyle(WSDLConstants.STYLE_RPC);
        service.addOperation(axisOp);
        service.mapActionToOperation(Constants.AXIS2_NAMESPACE_URI + "/" + opName.getLocalPart(),
                                     axisOp);

        return service;
View Full Code Here

Examples of org.apache.axis2.description.InOnlyAxisOperation

            }

            if (mepURL == null) {

                // assuming in-out mep
                op_descrip = new InOnlyAxisOperation();
            } else {
                try {
                    op_descrip = AxisOperationFactory.getOperationDescription(mepURL);
                } catch (AxisFault axisFault) {
                    throw new DeploymentException(
View Full Code Here

Examples of org.apache.axis2.description.InOnlyAxisOperation

            }

            if (mepURL == null) {

                // assuming in-out mep
                op_descrip = new InOnlyAxisOperation();
            } else {
                try {
                    op_descrip = AxisOperationFactory.getOperationDescription(mepURL);
                } catch (AxisFault axisFault) {
                    throw new DeploymentException(
View Full Code Here

Examples of org.apache.axis2.description.InOnlyAxisOperation

        MessageContext messageContext = testMessageWithOmittedHeaders("noMessageID");
        String messageID = messageContext.getOptions().getMessageId();

        assertNull("The message id is not null.", messageID);

        AxisOperation axisOperation = new InOnlyAxisOperation();
        messageContext.setAxisOperation(axisOperation);
        AxisService axisService = new AxisService();
        messageContext.setAxisService(axisService);
        validationHandler.invoke(messageContext);
    }
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.