Package com.talend.examples.interceptors

Examples of com.talend.examples.interceptors.Greeter


        final String address = "http://localhost:" + getPort() + "/services/InterceptorExample";

        Service service = Service.create(SERVICE_NAME);
        service.addPort(PORT_NAME, SOAPBinding.SOAP11HTTP_BINDING, address);

        Greeter greeter = service.getPort(Greeter.class);
       
        // Use CXF API's to grab the underlying Client object and add
        // the DemoInterceptor's to it
        org.apache.cxf.endpoint.Client client = ClientProxy.getClient(greeter);
        DemoInterceptor.addInterceptors(client.getEndpoint().getBinding());

        System.out.println("Invoking greetMe...");
        System.out.println("server responded with: " + greeter.greetMe(System.getProperty("user.name")));
        System.out.println();
    }
View Full Code Here

TOP

Related Classes of com.talend.examples.interceptors.Greeter

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.