}
}
private Client createClientFromFactoryBean()
{
JaxWsClientFactoryBean cpf = new JaxWsClientFactoryBean();
cpf.setServiceClass(serviceClass);
if (databinding == null)
{
cpf.setDataBinding(databinding);
}
cpf.setAddress(getAddress());
cpf.setBus(getBus());
cpf.setProperties(properties);
// If there's a soapVersion defined then the corresponding bindingId will be set
if(soapVersion != null)
{
cpf.setBindingId(CxfUtils.getBindingIdForSoapVersion(soapVersion));
}
if (wsdlLocation != null)
{
cpf.setWsdlURL(wsdlLocation);
}
return cpf.create();
}