Package org.apache.axis2.description

Examples of org.apache.axis2.description.OutInAxisOperation


        AxisService service = new AxisService(serviceName.getLocalPart());

        service.setClassLoader(getContextClassLoader_DoPriv());
        service.addParameter(new Parameter(Constants.SERVICE_CLASS, className));

        AxisOperation axisOp = new OutInAxisOperation(opName);

        axisOp.setMessageReceiver(messageReceiver);
        axisOp.setStyle(WSDLConstants.STYLE_RPC);
        service.addOperation(axisOp);

        return service;
    }
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

    protected void setUp() throws Exception {
        UtilServer.start();

        AxisService service = new AxisService(serviceName);
        AxisOperation axisOperation = new OutInAxisOperation(
                operationName);
        axisOperation.setMessageReceiver(new MessageReceiver() {
            public void receive(MessageContext messgeCtx) throws AxisFault {
                envelope = messgeCtx.getEnvelope();
                TestingUtils.campareWithCreatedOMElement(
                        envelope.getBody().getFirstElement());
            }
View Full Code Here

    public void testEchoXMLSyncMC() throws Exception {
        ConfigurationContextFactory confac = new ConfigurationContextFactory();
        ConfigurationContext configContext = confac.buildClientConfigurationContext(Constants.TESTING_REPOSITORY);

        AxisOperation opdesc = new OutInAxisOperation(new QName("echoOMElement"));
        org.apache.axis2.client.Call call = new org.apache.axis2.client.Call(Constants.TESTING_REPOSITORY);
        Options options = new Options();
        call.setClientOptions(options);
        options.setTo(targetEPR);
        options.setAction(operationName.getLocalPart());
View Full Code Here

    public void testEchoXMLCompleteASync() throws Exception {

        ConfigurationContext configContext = UtilsMailServer.createClientConfigurationContext();
        AxisService service = new AxisService(serviceName);
        AxisOperation axisOperation = new OutInAxisOperation(
                operationName);
        axisOperation.setMessageReceiver(new MessageReceiver() {
            public void receive(MessageContext messgeCtx) throws AxisFault {
                envelope = messgeCtx.getEnvelope();
            }
        });
        service.addOperation(axisOperation);
View Full Code Here

    protected void assumeServiceContext(String clientHome)
            throws AxisFault {

        super.assumeServiceContext(clientHome);
        AxisService axisService = serviceContext.getAxisService();
        axisOperationTemplate = new OutInAxisOperation(new QName("TemplateOperation"));

        AxisConfiguration axisConfiguration = serviceContext.getConfigurationContext().getAxisConfiguration();
        PhasesInfo info = ((AxisConfiguration) axisConfiguration).getPhasesinfo();
        //to set the operation flows
        if (info != null) {
View Full Code Here

        MessageContext requestContext = ClientUtil.getMessageContext(this);
        try {
            options.setListenerTransportProtocol(Constants.TRANSPORT_HTTP);
            options.setUseSeparateListener(false);
            QName opName = new QName("urn:GoogleSearch", "doGoogleSearch");
            AxisOperation opdesc = new OutInAxisOperation(opName);
            //   AxisOperation opdesc = new AxisOperation(new QName("viewVersion"));
            call.invokeNonBlocking(opdesc,
                    requestContext,
                    new ClientCallbackHandler(this.gui));
View Full Code Here

        m1.setInFlow(new MockFlow("service module inflow", 4));
        //m1.setFaultInFlow(new MockFlow("service module faultflow", 1));
        engineRegistry = new AxisConfiguration();
        service.engageModule(m1,engineRegistry);

        AxisOperation axisOperation = new OutInAxisOperation(
                operationName);
        service.addOperation(axisOperation);

        UtilServer.deployService(service);
        UtilServer.start();
View Full Code Here

    public SOAPEnvelope invokeBlockingWithEnvelopeOut(String axisop,
                                                      OMElement toSend) throws AxisFault {
        AxisOperation axisConfig =
                getServiceContext().getAxisService().getOperation(new QName(axisop));
        if (axisConfig == null) {
            axisConfig = new OutInAxisOperation(new QName(axisop));
            axisConfig.setRemainingPhasesInFlow(axisOperationTemplate.getRemainingPhasesInFlow());
            axisConfig.setPhasesOutFlow(axisOperationTemplate.getPhasesOutFlow());
            axisConfig.setPhasesInFaultFlow(axisOperationTemplate.getPhasesInFaultFlow());
            axisConfig.setPhasesOutFaultFlow(axisOperationTemplate.getPhasesOutFaultFlow());
            getServiceContext().getAxisService().addOperation(axisConfig);
View Full Code Here

    public SOAPEnvelope invokeBlockingWithEnvelopeOut(String axisop,
                                                      SOAPEnvelope reqEnvelope) throws AxisFault {
        AxisOperation axisConfig =
                getServiceContext().getAxisService().getOperation(new QName(axisop));
        if (axisConfig == null) {
            axisConfig = new OutInAxisOperation(new QName(axisop));
            axisConfig.setRemainingPhasesInFlow(axisOperationTemplate.getRemainingPhasesInFlow());
            axisConfig.setPhasesOutFlow(axisOperationTemplate.getPhasesOutFlow());
            axisConfig.setPhasesInFaultFlow(axisOperationTemplate.getPhasesInFaultFlow());
            axisConfig.setPhasesOutFaultFlow(axisOperationTemplate.getPhasesOutFaultFlow());
            getServiceContext().getAxisService().addOperation(axisConfig);
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.