Package org.apache.axis2.receivers

Examples of org.apache.axis2.receivers.RawXMLINOutMessageReceiver


        service.setClassLoader(Thread.currentThread().getContextClassLoader());
        service.addParameter(new Parameter(Constants.SERVICE_CLASS,
                                           EchoService.class.getName()));

        AxisOperation axisOp = new OutInAxisOperation(operationName);
        axisOp.setMessageReceiver(new RawXMLINOutMessageReceiver());
        axisOp.setStyle(WSDLConstants.STYLE_DOC);
        service.addOperation(axisOp);
        UtilServer.deployService(service);
    }
View Full Code Here


    }

    protected void setUp() throws Exception {

        AxisService service =
                createSpringService(springServiceName, new RawXMLINOutMessageReceiver(),
                                    "org.apache.axis2.extensions.spring.receivers.SpringAppContextAwareObjectSupplier",
                                    "springAwareService",
                                    springOperationName);
        createSpringAppCtx(service.getClassLoader());
        UtilServer.deployService(service);
View Full Code Here

    // alternative method, SpringAppContextAwareObjectSupplier, whose purpose is to
    // run in a non-servlet container environment
    public void testSpringAppContextAwareObjectSupplier() throws Exception {

        AxisService clientService =
                createSpringServiceforClient(springServiceName, new RawXMLINOutMessageReceiver(),
                                             "org.apache.axis2.extensions.spring.receivers.SpringAppContextAwareObjectSupplier",
                                             "springAwareService",
                                             springOperationName);
        ConfigurationContext configcontext = UtilServer.createClientConfigurationContext();
        ServiceClient sender = new ServiceClient(configcontext, clientService);
View Full Code Here

      public void receive(MessageContext msgContext) throws AxisFault {
        // Set the reply to on the server side to test server side
        // target resolvers
        msgContext.setReplyTo(new EndpointReference(
              "http://ws.apache.org/new/anonymous/address"));
          new RawXMLINOutMessageReceiver().receive(msgContext);
      }
      });
      deployClassAsService(Echo.SERVICE_NAME, Echo.class);
      clientCtx.getAxisConfiguration().addTargetResolver(new TestTargetResolver());
      serverConfig.getAxisConfiguration().addTargetResolver(new TestTargetResolver());
View Full Code Here

        // Set up raw message receivers for OMElement based tests

        serverConfig.addMessageReceiver(WSDL2Constants.MEP_URI_IN_ONLY,
                                        new RawXMLINOnlyMessageReceiver());
        serverConfig.addMessageReceiver(WSDL2Constants.MEP_URI_IN_OUT,
                                        new RawXMLINOutMessageReceiver());
        serverConfig.addMessageReceiver(WSDL2Constants.MEP_URI_ROBUST_IN_ONLY,
                                        new RawXMLINOutMessageReceiver());

        ///////////////////////////////////////////////////////////////////////
        // And client side
        clientCtx = ConfigurationContextFactory.createConfigurationContextFromFileSystem(null);
    }
View Full Code Here

        return getTestSetup(new TestSuite(AddressingFinalServiceTest.class));
    }

    protected void setUp() throws Exception {
        echoService = Utils.createSimpleService(serviceName,
                                                new RawXMLINOutMessageReceiver(),
                                                Echo.class.getName(),
                                                operationName);
        echoService.getOperation(operationName).setOutputAction("echoOMElementResponse");
        UtilServer.deployService(echoService);
View Full Code Here

        service.addParameter(
                new Parameter(Constants.SERVICE_CLASS, MultiHopRedirectService1.class.getName()));

        AxisOperation axisOp = new InOutAxisOperation(new QName("echoRedirect"));

        axisOp.setMessageReceiver(new RawXMLINOutMessageReceiver());
        service.addOperation(axisOp);
        service.mapActionToOperation(Constants.AXIS2_NAMESPACE_URI + "/" + "echoRedirect", axisOp);

        return service;
    }
View Full Code Here

        service.addParameter(
                new Parameter(Constants.SERVICE_CLASS, MultiHopRedirectService2.class.getName()));

        AxisOperation axisOp = new InOutAxisOperation(new QName("echoRedirect"));

        axisOp.setMessageReceiver(new RawXMLINOutMessageReceiver());
        service.addOperation(axisOp);
        service.mapActionToOperation(Constants.AXIS2_NAMESPACE_URI + "/" + "echoRedirect", axisOp);

        return service;
    }
View Full Code Here

        service.addParameter(
                new Parameter(Constants.SERVICE_CLASS, MultiHopRedirectService1.class.getName()));

        AxisOperation axisOp = new OutInAxisOperation(new QName("echoRedirect"));

        axisOp.setMessageReceiver(new RawXMLINOutMessageReceiver());
        axisOp.setSoapAction(Constants.AXIS2_NAMESPACE_URI + "/" + "echoRedirect");
        axisOp.setOutputAction(Constants.AXIS2_NAMESPACE_URI + "/" + "echoRedirect");
        service.addOperation(axisOp);
        service.mapActionToOperation(Constants.AXIS2_NAMESPACE_URI + "/" + "echoRedirect", axisOp);
View Full Code Here

        return MessageContextBuilder.createOutMessageContext(inMessageContext);
    }

    public static AxisService createSimpleService(QName serviceName, String className, QName opName)
            throws AxisFault {
        return createSimpleService(serviceName, new RawXMLINOutMessageReceiver(), className,
                                   opName);
    }
View Full Code Here

TOP

Related Classes of org.apache.axis2.receivers.RawXMLINOutMessageReceiver

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.