Package common.codefirst

Examples of common.codefirst.HelloWorld


    public void sayHelloRest() throws Exception {
        final String address = "http://localhost:" + port + "/services/rest-hello";

        System.out.println("Using CXF JAX-RS proxy to invoke on HelloWorld service");

        HelloWorld service = JAXRSClientFactory.create(address, HelloWorld.class);
        useHelloService(service, "Barry");
    }
View Full Code Here


        System.out.println("Using JAX-WS proxy to invoke on HelloWorld service");

        Service service = Service.create(serviceName);
        service.addPort(portName, SOAPBinding.SOAP11HTTP_BINDING, address);

        HelloWorld hw = service.getPort(HelloWorld.class);

        useHelloService(hw, "Fred");
    }
View Full Code Here

TOP

Related Classes of common.codefirst.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.