Search in sources :

Example 1 with CreditAgencyWS

use of org.apache.camel.loanbroker.credit.CreditAgencyWS in project camel by apache.

the class CreditScoreProcessor method getProxy.

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();
}
Also used : ClientFactoryBean(org.apache.cxf.frontend.ClientFactoryBean) JaxWsProxyFactoryBean(org.apache.cxf.jaxws.JaxWsProxyFactoryBean) CreditAgencyWS(org.apache.camel.loanbroker.credit.CreditAgencyWS)

Aggregations

CreditAgencyWS (org.apache.camel.loanbroker.credit.CreditAgencyWS)1 ClientFactoryBean (org.apache.cxf.frontend.ClientFactoryBean)1 JaxWsProxyFactoryBean (org.apache.cxf.jaxws.JaxWsProxyFactoryBean)1