Package org.apache.servicemix.components.util

Examples of org.apache.servicemix.components.util.EchoComponent


        HttpComponent component = new HttpComponent();
        ((HttpLifeCycle) component.getLifeCycle()).getConfiguration().setStreamingEnabled(streaming);
        container.activateComponent(component, "HTTPComponent");
       
        // Add a receiver component
        EchoComponent echo = new EchoComponent();
        ActivationSpec asReceiver = new ActivationSpec("echo", echo);
        asReceiver.setService(new QName("http://http.servicemix.org/Test", "ConsumerInOut"));
        container.activateComponent(asReceiver);
       
        // Add the http invoker
View Full Code Here


        assertEquals(HttpServletResponse.SC_BAD_REQUEST, state);
        FileUtil.copyInputStream(method.getResponseBodyAsStream(), System.out);
    }

    public void testSoap() throws Exception {
        EchoComponent echo = new EchoComponent();
        echo.setService(new QName("urn:test", "echo"));
        echo.setEndpoint("echo");
        container.activateComponent(echo, "echo");
       
        HttpSpringComponent http = new HttpSpringComponent();
       
        HttpEndpoint ep1 = new HttpEndpoint();
View Full Code Here

                       new StreamSource(getClass().getResourceAsStream("soap-request.xml")));
       
    }
   
    public void testSoapRoundtripConsumerProvider() throws Exception {
        EchoComponent echo = new EchoComponent();
        echo.setService(new QName("urn:test", "echo"));
        echo.setEndpoint("echo");
        container.activateComponent(echo, "echo");
       
        HttpSpringComponent http = new HttpSpringComponent();
       
        HttpEndpoint ep1 = new HttpEndpoint();
View Full Code Here

        client.done(me);
        System.err.println(str);
    }

    public void testSoapRoundtripProviderConsumerProvider() throws Exception {
        EchoComponent echo = new EchoComponent();
        echo.setService(new QName("urn:test", "echo"));
        echo.setEndpoint("echo");
        container.activateComponent(echo, "echo");
       
        HttpSpringComponent http = new HttpSpringComponent();
       
        HttpEndpoint ep1 = new HttpEndpoint();
View Full Code Here

        e = DOMUtil.getFirstChildElement(e);
        assertEquals(new QName("", "clientSessionGuid"), DOMUtil.getQName(e));
    }
   
    public void testAttachments() throws Exception {
        EchoComponent echo = new EchoComponent();
        echo.setService(new QName("urn:test", "echo"));
        echo.setEndpoint("echo");
        container.activateComponent(echo, "echo");
       
        HttpSpringComponent http = new HttpSpringComponent();
       
        HttpEndpoint ep0 = new HttpEndpoint();
View Full Code Here

        jbi.shutDown();
        broker.stop();
    }
   
    public void testSync() throws Exception {
        EchoComponent echo = new EchoComponent();
        echo.setService(new QName("urn:test", "echo"));
        echo.setEndpoint("echo");
        jbi.activateComponent(echo, "echo");
       
        HttpEndpoint ep0 = new HttpEndpoint();
        ep0.setService(new QName("urn:test", "s0"));
        ep0.setEndpoint("ep0");
View Full Code Here

        client.done(me);
        tm.commit();
    }
   
    public void testAsync() throws Exception {
        EchoComponent echo = new EchoComponent();
        echo.setService(new QName("urn:test", "echo"));
        echo.setEndpoint("echo");
        jbi.activateComponent(echo, "echo");
       
        HttpEndpoint ep0 = new HttpEndpoint();
        ep0.setService(new QName("urn:test", "s0"));
        ep0.setEndpoint("ep0");
View Full Code Here

        }
    }

    public void testWithNonStandaloneWsdl() throws Exception {
        // Add a receiver component
        ActivationSpec asEcho = new ActivationSpec("echo", new EchoComponent() {
            public Document getServiceDescription(ServiceEndpoint endpoint) {
                try {
                    Definition def = WSDLFactory.newInstance().newDefinition();
                    PortType type = def.createPortType();
                    type.setUndefined(false);
View Full Code Here

            container.shutDown();
        }
    }

    public void testNonSoap() throws Exception {
        EchoComponent echo = new EchoComponent();
        echo.setService(new QName("http://servicemix.apache.org/samples/wsdl-first", "PersonService"));
        echo.setEndpoint("service");
        container.activateComponent(echo, "echo");

        HttpComponent http = new HttpComponent();

        HttpConsumerEndpoint ep0 = new HttpConsumerEndpoint();
View Full Code Here

        System.err.println(new SourceTransformer().contentToString(me.getOutMessage()));
    }

    public void testSoap() throws Exception {
        EchoComponent echo = new EchoComponent();
        echo.setService(new QName("http://servicemix.apache.org/samples/wsdl-first", "EchoService"));
        echo.setEndpoint("service");
        container.activateComponent(echo, "echo");
       
        HttpComponent http = new HttpComponent();
       
        HttpConsumerEndpoint ep0 = new HttpConsumerEndpoint();
View Full Code Here

TOP

Related Classes of org.apache.servicemix.components.util.EchoComponent

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.