Package org.apache.servicemix.jms.endpoints

Examples of org.apache.servicemix.jms.endpoints.JmsSoapConsumerEndpoint


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

    public void testSoapConsumerSimple() throws Exception {
        JmsComponent component = new JmsComponent();
        JmsSoapConsumerEndpoint endpoint = new JmsSoapConsumerEndpoint();
        endpoint.setService(new QName("uri:HelloWorld", "HelloService"));
        endpoint.setEndpoint("HelloPort");
        endpoint.setTargetService(new QName("mock"));
        endpoint.setListenerType("simple");
        endpoint.setConnectionFactory(connectionFactory);
        endpoint.setDestinationName("destination");
        endpoint.setReplyDestinationName("reply");
        endpoint.setWsdl(new ClassPathResource("org/apache/servicemix/jms/HelloWorld-RPC.wsdl"));
        component.setEndpoints(new JmsConsumerEndpoint[] {endpoint});
        container.activateComponent(component, "servicemix-jms");
       
        MockServiceComponent mock = new MockServiceComponent();
        mock.setService(new QName("mock"));
View Full Code Here


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

    public void testSoapConsumerSimple() throws Exception {
        JmsComponent component = new JmsComponent();
        JmsSoapConsumerEndpoint endpoint = new JmsSoapConsumerEndpoint();
        endpoint.setService(new QName("uri:HelloWorld", "HelloService"));
        endpoint.setEndpoint("HelloPort");
        endpoint.setTargetService(new QName("mock"));
        endpoint.setListenerType("simple");
        endpoint.setConnectionFactory(connectionFactory);
        endpoint.setDestinationName("destination");
        endpoint.setReplyDestinationName("reply");
        endpoint.setWsdl(new ClassPathResource("org/apache/servicemix/jms/HelloWorld-RPC.wsdl"));
        component.setEndpoints(new JmsConsumerEndpoint[] {endpoint});
        container.activateComponent(component, "servicemix-jms");

        MockServiceComponent mock = new MockServiceComponent();
        mock.setService(new QName("mock"));
View Full Code Here

TOP

Related Classes of org.apache.servicemix.jms.endpoints.JmsSoapConsumerEndpoint

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.