日期:2014-05-17  浏览次数:20668 次

cxf+spring教程中的疑问
原文地址 http://blog.csdn.net/kongxx/article/details/7527094

factoryBean.setServiceClass(CustomerService.class); 客户端的CustomerService哪里来的 

有大神能贴下 cxf通过验证用户名密码获取权限的例子呢
万分感谢。
------解决方案--------------------
public class CustomerServiceImpl implements CustomerService {  
  
    public Customer findCustomer(String id) {  
        Customer customer = new Customer();  
        customer.setId("customer_" + id);  
        customer.setName("customer_name");  
        customer.setBirthday(Calendar.getInstance().getTime());  
        return customer;  
    }  
}  

实现都给你了。。 接口方法体去掉。

------解决方案--------------------
客户端的CustomerService应该是通过服务端提供的wsdl文件来自动生成的。里面就是你服务端暴露给你的接口实现方式。