javax.xml.ws.soap.SOAPFaultException: 没有Header,拦截器实施拦截

客户端代码:

client.getOutInterceptors().add(new AuthInterceptor("zhangsan", "123456"));

不是:

client.getInInterceptors().add(new AuthInterceptor("zhangsan", "123456"));

意思是在客户端发送请求前做拦截处理。

posted @ 2015-05-05 23:35  xiluhua  阅读(2004)  评论(0编辑  收藏  举报