use of org.apache.cxf.jaxws.JaxWsProxyFactoryBean in project survey by markoniemi.
the class ServiceTestConfig method getUserService.
@Bean(name = "userService")
public Object getUserService() {
JaxWsProxyFactoryBean proxyFactory = new JaxWsProxyFactoryBean();
proxyFactory.setServiceClass(UserService.class);
proxyFactory.setAddress(baseAddress + "userService");
return proxyFactory.create();
}
use of org.apache.cxf.jaxws.JaxWsProxyFactoryBean in project qi4j-sdk by Qi4j.
the class HelloClient method main.
public static void main(String[] args) {
JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
factory.getInInterceptors().add(new LoggingInInterceptor());
factory.getOutInterceptors().add(new LoggingOutInterceptor());
factory.setServiceClass(HelloWorld.class);
factory.setAddress("http://localhost:9001/helloWorld");
HelloWorld client = (HelloWorld) factory.create();
String reply = client.sayHi("World");
System.out.println("Server said: " + reply);
}
use of org.apache.cxf.jaxws.JaxWsProxyFactoryBean in project cxf by apache.
the class HttpServiceTest method greeterHttpProxy.
private Greeter greeterHttpProxy(String port) {
JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
factory.setServiceClass(Greeter.class);
factory.setAddress("http://localhost:" + port + "/cxf/greeter");
return factory.create(Greeter.class);
}
use of org.apache.cxf.jaxws.JaxWsProxyFactoryBean in project cxf by apache.
the class JmsServiceTest method greeterJms.
private static Greeter greeterJms() {
JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
factory.setServiceClass(Greeter.class);
factory.setAddress("jms:queue:greeter");
ConnectionFactory connectionFactory = createConnectionFactory();
factory.setFeatures(Collections.singletonList(new ConnectionFactoryFeature(connectionFactory)));
return factory.create(Greeter.class);
}
use of org.apache.cxf.jaxws.JaxWsProxyFactoryBean in project cxf by apache.
the class ClientJMS method createClientCxf.
private static HelloWorld createClientCxf() {
JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
factory.setTransportId(JMSSpecConstants.SOAP_JMS_SPECIFICATION_TRANSPORTID);
factory.setAddress(JMS_ENDPOINT_URI);
return factory.create(HelloWorld.class);
}
Aggregations