Package org.apache.servicemix.http.endpoints

Examples of org.apache.servicemix.http.endpoints.HttpConsumerEndpoint


        echo.setEndpoint("service");
        container.activateComponent(echo, "echo");

        HttpComponent http = new HttpComponent();

        HttpConsumerEndpoint ep0 = new HttpConsumerEndpoint();
        ep0.setService(new QName("http://servicemix.apache.org/samples/wsdl-first", "PersonService"));
        ep0.setEndpoint("consumer");
        ep0.setTargetService(new QName("http://servicemix.apache.org/samples/wsdl-first", "PersonService"));
        ep0.setTargetEndpoint("service");
        ep0.setLocationURI("http://localhost:8192/person/");

        HttpProviderEndpoint ep1 = new HttpProviderEndpoint();
        ep1.setService(new QName("http://servicemix.apache.org/samples/wsdl-first", "PersonService"));
        ep1.setEndpoint("provider");
        ep1.setLocationURI("http://localhost:8192/person/");
View Full Code Here


        echo.setEndpoint("service");
        container.activateComponent(echo, "echo");
       
        HttpComponent http = new HttpComponent();
       
        HttpConsumerEndpoint ep0 = new HttpConsumerEndpoint();
        ep0.setService(new QName("http://servicemix.apache.org/samples/wsdl-first", "PersonService"));
        ep0.setEndpoint("consumer");
        ep0.setTargetService(new QName("http://servicemix.apache.org/samples/wsdl-first", "PersonService"));
        ep0.setTargetEndpoint("service");
        ep0.setLocationURI("http://localhost:8192/PersonService/");

        HttpSoapProviderEndpoint ep1 = new HttpSoapProviderEndpoint();
        ep1.setService(new QName("http://servicemix.apache.org/samples/wsdl-first", "PersonService"));
        ep1.setEndpoint("soap");
        ep1.setWsdl(new ClassPathResource("person.wsdl"));
View Full Code Here

        }
    }

    public void testHttpInOnly() throws Exception {
        HttpComponent http = new HttpComponent();
        HttpConsumerEndpoint ep = new HttpConsumerEndpoint();
        ep.setService(new QName("urn:test", "svc"));
        ep.setEndpoint("ep");
        ep.setTargetService(new QName("urn:test", "recv"));
        ep.setLocationURI("http://localhost:8192/ep1/");
        ep.setDefaultMep(MessageExchangeSupport.IN_ONLY);
        http.setEndpoints(new HttpEndpointType[] {ep});
        container.activateComponent(http, "http");

        ReceiverComponent recv = new ReceiverComponent();
        recv.setService(new QName("urn:test", "recv"));
View Full Code Here

        recv.getMessageList().assertMessagesReceived(1);
    }

    public void testHttpInOut() throws Exception {
        HttpComponent http = new HttpComponent();
        HttpConsumerEndpoint ep = new HttpConsumerEndpoint();
        ep.setService(new QName("urn:test", "svc"));
        ep.setEndpoint("ep");
        ep.setTargetService(new QName("urn:test", "echo"));
        ep.setLocationURI("http://localhost:8192/ep1/");
        http.setEndpoints(new HttpEndpointType[] {ep});
        container.activateComponent(http, "http");

        EchoComponent echo = new EchoComponent();
        echo.setService(new QName("urn:test", "echo"));
View Full Code Here

        echo.setEndpoint("service");
        container.activateComponent(echo, "echo");

        HttpComponent http = new HttpComponent();

        HttpConsumerEndpoint ep0 = new HttpConsumerEndpoint();
        ep0.setService(new QName("http://servicemix.apache.org/samples/wsdl-first", "PersonService"));
        ep0.setEndpoint("consumer");
        ep0.setTargetService(new QName("http://servicemix.apache.org/samples/wsdl-first", "PersonService"));
        ep0.setTargetEndpoint("service");
        ep0.setLocationURI("http://localhost:8192/person/");

        HttpProviderEndpoint ep1 = new HttpProviderEndpoint();
        ep1.setService(new QName("http://servicemix.apache.org/samples/wsdl-first", "PersonService"));
        ep1.setEndpoint("provider");
        ep1.setLocationURI("http://localhost:8192/person/");
View Full Code Here

        echo.setEndpoint("service");
        container.activateComponent(echo, "echo");
       
        HttpComponent http = new HttpComponent();
       
        HttpConsumerEndpoint ep0 = new HttpConsumerEndpoint();
        ep0.setService(new QName("http://servicemix.apache.org/samples/wsdl-first", "PersonService"));
        ep0.setEndpoint("consumer");
        ep0.setTargetService(new QName("http://servicemix.apache.org/samples/wsdl-first", "EchoService"));
        ep0.setTargetEndpoint("service");
        ep0.setLocationURI("http://localhost:8192/PersonService/");

        HttpSoapProviderEndpoint ep1 = new HttpSoapProviderEndpoint();
        ep1.setService(new QName("http://servicemix.apache.org/samples/wsdl-first", "PersonService"));
        ep1.setEndpoint("soap");
        ep1.setWsdl(new ClassPathResource("person.wsdl"));
View Full Code Here

        echo.setEndpoint("service");
        container.activateComponent(echo, "echo");
       
        HttpComponent http = new HttpComponent();
       
        HttpConsumerEndpoint ep0 = new HttpConsumerEndpoint();
        ep0.setService(new QName("http://servicemix.apache.org/samples/wsdl-first", "PersonService"));
        ep0.setEndpoint("consumer");
        ep0.setTargetService(new QName("http://servicemix.apache.org/samples/wsdl-first", "EchoService"));
        ep0.setTargetEndpoint("service");
        ep0.setLocationURI("http://localhost:8192/PersonService/");

        HttpSoapProviderEndpoint ep1 = new HttpSoapProviderEndpoint();
        ep1.setService(new QName("http://servicemix.apache.org/samples/wsdl-first", "PersonService"));
        ep1.setEndpoint("soap");
        ep1.setWsdl(new ClassPathResource("person.wsdl"));
View Full Code Here

        echo.setEndpoint("service");
        container.activateComponent(echo, "echo");

        HttpComponent http = new HttpComponent();

        HttpConsumerEndpoint ep0 = new HttpConsumerEndpoint();
        ep0.setService(new QName("http://servicemix.apache.org/samples/wsdl-first", "PersonService"));
        ep0.setEndpoint("consumer");
        ep0.setTargetService(new QName("http://servicemix.apache.org/samples/wsdl-first", "PersonService"));
        ep0.setTargetEndpoint("service");
        ep0.setLocationURI("http://localhost:8192/person/");

        HttpProviderEndpoint ep1 = new HttpProviderEndpoint();
        ep1.setService(new QName("http://servicemix.apache.org/samples/wsdl-first", "PersonService"));
        ep1.setEndpoint("provider");
        ep1.setLocationURI("http://localhost:8192/person/");
View Full Code Here

        echo.setEndpoint("service");
        container.activateComponent(echo, "echo");
       
        HttpComponent http = new HttpComponent();
       
        HttpConsumerEndpoint ep0 = new HttpConsumerEndpoint();
        ep0.setService(new QName("http://servicemix.apache.org/samples/wsdl-first", "PersonService"));
        ep0.setEndpoint("consumer");
        ep0.setTargetService(new QName("http://servicemix.apache.org/samples/wsdl-first", "PersonService"));
        ep0.setTargetEndpoint("service");
        ep0.setLocationURI("http://localhost:8192/PersonService/");

        HttpSoapProviderEndpoint ep1 = new HttpSoapProviderEndpoint();
        ep1.setService(new QName("http://servicemix.apache.org/samples/wsdl-first", "PersonService"));
        ep1.setEndpoint("soap");
        ep1.setWsdl(new ClassPathResource("person.wsdl"));
View Full Code Here

TOP

Related Classes of org.apache.servicemix.http.endpoints.HttpConsumerEndpoint

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.