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();
}