小编Jon*_*nas的帖子

Rampart PostDispatchVerificationHandler:InvalidSecurity - 找不到安全策略

编辑:

我稍稍调整了Rampart配置,现在我又陷入了另一个角度.

在Rampart的PostDispatchVerificationHandler中,抛出异常,因为尚未处理安全标头.

// If a security header is there and Rampart is engaged, it has to be processed.  
// If it is not processed, there must have been a problem in picking the policy 

SOAPHeaderBlock secHeader = getSecurityHeader(msgContext);
if (secHeader != null && (secHeader.isProcessed() == false)) {
     throw new AxisFault("InvalidSecurity - Security policy not found");
}
Run Code Online (Sandbox Code Playgroud)

日志:

[DEBUG] [MessageContext: logID=a5012f2f13095af97123a192575c50a7f727850f3a9ecfc5] Invoking Handler 'HTTPLocationBasedDispatcher' in Phase 'Dispatch'
[DEBUG] [MessageContext: logID=a5012f2f13095af97123a192575c50a7f727850f3a9ecfc5] Invoking Handler 'Post dispatch security verification handler' in Phase 'Dispatch' …
Run Code Online (Sandbox Code Playgroud)

java ws-security axis2 web-services rampart

19
推荐指数
1
解决办法
4231
查看次数

标签 统计

axis2 ×1

java ×1

rampart ×1

web-services ×1

ws-security ×1