use of demo.stream.interceptor.StreamInterceptor in project cxf by apache.
the class Client method main.
public static void main(String[] args) throws Exception {
URL wsdlURL = Client.class.getResource("/wsdl/hello_world.wsdl");
SOAPService ss = new SOAPService(wsdlURL, SERVICE_NAME);
Greeter port = ss.getSoapPort();
org.apache.cxf.endpoint.Client client = ClientProxy.getClient(port);
client.getInInterceptors().add(new StreamInterceptor());
client.getInFaultInterceptors().add(new StreamInterceptor());
System.out.println("Invoking sayHi...");
String resp = port.sayHi();
System.out.println("Server responded with: " + resp);
System.out.println();
System.exit(0);
}
Aggregations