public class UserWebserviceProxy {
private JaxWsProxyFactoryBean factoryBean;
public JaxWsProxyFactoryBean proxyFactoryBean(String url) throws Exception {
factoryBean = new JaxWsProxyFactoryBean();
factoryBean.getInInterceptors().add(new LoggingInInterceptor());
factoryBean.getOutInterceptors().add(new LoggingOutInterceptor());
factoryBean.setAddress(url);
return factoryBean;
}
// 用户登陆
public IUserInfoResponse userInfoLogin(String arg0, String arg1,String arg2,String arg3)
throws Exception {
factoryBean.setServiceClass(IClientUserService.class);
IClientUserService approvalService = (IClientUserService) factoryBean
.create();
return approvalService.userInfoLogin(arg0, arg1, arg2, arg3);
本文介绍如何使用用户服务代理实现远程调用,并通过Action类进行实例化和调用,涉及用户登录验证过程。
3471

被折叠的 条评论
为什么被折叠?



