public void setBus(Bus bus) { this.bus = bus; clientFactoryBean.setBus(bus); }
public void setBus(Bus bus) { this.bus = bus; clientFactoryBean.setBus(bus); }
private CreditAgencyWS getProxy() { // Here we use JaxWs front end to create the proxy JaxWsProxyFactoryBean proxyFactory = new JaxWsProxyFactoryBean(); ClientFactoryBean clientBean = proxyFactory.getClientFactoryBean(); clientBean.setAddress(creditAgencyAddress); clientBean.setServiceClass(CreditAgencyWS.class); clientBean.setBus(BusFactory.getDefaultBus()); return (CreditAgencyWS)proxyFactory.create(); }
public Client createClient(String address, String soapVersion) { return withContextClassLoader(CxfClientFactory.class.getClassLoader(), () -> { ClientFactoryBean factory = new ClientFactoryBean(); factory.setServiceClass(ProxyService.class); factory.setDataBinding(new StaxDataBinding()); factory.getFeatures().add(new StaxDataBindingFeature()); factory.setAddress(address); factory.setBus(bus); factory.setBindingId(getBindingIdForSoapVersion(soapVersion)); return factory.create(); }); }
clientFactory.setBus(bus);
clientFactory.setBus(bus);
public static LoanBrokerWS getProxy(String address) { // Now we use the simple front API to create the client proxy ClientProxyFactoryBean proxyFactory = new ClientProxyFactoryBean(); ClientFactoryBean clientBean = proxyFactory.getClientFactoryBean(); clientBean.setAddress(address); clientBean.setServiceClass(LoanBrokerWS.class); // just create a new bus for use clientBean.setBus(BusFactory.newInstance().createBus()); return (LoanBrokerWS) proxyFactory.create(); }
cpf.getFeatures().add(new StaxDataBindingFeature()); cpf.setAddress(getAddress()); cpf.setBus(getBus()); cpf.setProperties(properties);
clientFactoryBean.setBus(bus);
clientFactoryBean.setBus(bus);
cpf.setBus(getBus()); cpf.setProperties(properties);
factoryBean.setBus(getBus());