【发布时间】:2015-12-16 17:57:53
【问题描述】:
我有一个企业应用程序,它由运行在 WebSphere Application Server 7 上的 Web 服务客户端组成。
当我尝试使用该服务时,我收到一个响应(不是错误),其中包含我请求的数据,然后 WebSphere 引发以下异常:
javax.xml.ws.WebServiceException: org.apache.axis2.AxisFault: Must Understand check failed for header http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd : Security
WebService 使用用户名令牌进行身份验证,并且不使用消息级别保护。
我创建了我的自定义策略集(WS-Addressing 和 WS-Security),删除了消息级别保护,添加了带有用户名和密码的自定义绑定。
我使用 SoapUI 对此进行了测试,我从 Web 服务获得了与使用 WebSphere 时相同的响应(不是错误)。
我错过了什么?
【问题讨论】:
标签: java web-services security websphere-7