Package org.apache.cxf.systest.jaxrs.jaxws

Examples of org.apache.cxf.systest.jaxrs.jaxws.HelloWorld


   
    @Test
    public void testHelloRest() throws Exception {
        String address = "http://localhost:" + PORT + "/test/services/hello-rest";
       
        HelloWorld service = JAXRSClientFactory.create(address, HelloWorld.class);
        useHelloService(service);
    }
View Full Code Here


        final String address = "http://localhost:" + PORT + "/test/services/hello-soap";
       
        Service service = Service.create(serviceName);
        service.addPort(portName, SOAPBinding.SOAP11HTTP_BINDING, address);
   
        HelloWorld hw = service.getPort(HelloWorld.class);
   
        useHelloService(hw);
    }
View Full Code Here

        final QName portName = new QName("http://hello.com", "HelloWorldPort");
       
        Service service = Service.create(serviceName);
        service.addPort(portName, SOAPBinding.SOAP11HTTP_BINDING, address);
   
        HelloWorld hw = service.getPort(HelloWorld.class);
       
        Client cl = ClientProxy.getClient(hw);
       
        HTTPConduit http = (HTTPConduit) cl.getConduit();
        
        HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy();
        httpClientPolicy.setConnectionTimeout(0);
        httpClientPolicy.setReceiveTimeout(0);
        
        http.setClient(httpClientPolicy);
   
        User user = new UserImpl("Barry");
        User user2 = hw.echoUser(user);
       
        assertNotSame(user, user2);
        assertEquals("Barry", user2.getName());
    }
View Full Code Here

   
    @Test
    public void testHelloRest() throws Exception {
        String address = "http://localhost:" + PORT + "/test/services/hello-rest";
       
        HelloWorld service = JAXRSClientFactory.create(address, HelloWorld.class);
        useHelloService(service);
    }
View Full Code Here

        final String address = "http://localhost:" + PORT + "/test/services/hello-soap";
       
        Service service = Service.create(serviceName);
        service.addPort(portName, SOAPBinding.SOAP11HTTP_BINDING, address);
   
        HelloWorld hw = service.getPort(HelloWorld.class);
   
        useHelloService(hw);
    }
View Full Code Here

        final String address = "http://localhost:" + PORT + "/test/services/hello-soap-databinding";
       
        Service service = Service.create(serviceName);
        service.addPort(portName, SOAPBinding.SOAP11HTTP_BINDING, address);
   
        HelloWorld hw = service.getPort(HelloWorld.class);
   
        User user = new UserImpl("Barry");
        User user2 = hw.echoUser(user);
       
        assertNotSame(user, user2);
        assertEquals("Barry", user.getName());
    }
View Full Code Here

   
    @Test
    public void testHelloRest() throws Exception {
        String address = "http://localhost:" + PORT + "/test/services/hello-rest";
       
        HelloWorld service = JAXRSClientFactory.create(address, HelloWorld.class);
        useHelloService(service);
    }
View Full Code Here

        final String address = "http://localhost:" + PORT + "/test/services/hello-soap";
       
        Service service = Service.create(serviceName);
        service.addPort(portName, SOAPBinding.SOAP11HTTP_BINDING, address);
   
        HelloWorld hw = service.getPort(HelloWorld.class);
   
        useHelloService(hw);
    }
View Full Code Here

        final String address = "http://localhost:" + PORT + "/test/services/hello-soap-databinding";
       
        Service service = Service.create(serviceName);
        service.addPort(portName, SOAPBinding.SOAP11HTTP_BINDING, address);
   
        HelloWorld hw = service.getPort(HelloWorld.class);
   
        User user = new UserImpl("Barry");
        User user2 = hw.echoUser(user);
       
        assertNotSame(user, user2);
        assertEquals("Barry", user.getName());
    }
View Full Code Here

   
    @Test
    public void testHelloRest() throws Exception {
        String address = "http://localhost:" + PORT + "/test/services/hello-rest";
       
        HelloWorld service = JAXRSClientFactory.create(address, HelloWorld.class);
        useHelloService(service);
    }
View Full Code Here

TOP

Related Classes of org.apache.cxf.systest.jaxrs.jaxws.HelloWorld

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.