我目前正在用Camel编写一个Web服务服务器,并且需要实现WS-Security(加密/签名)。 在其他项目中我使用过 Spring-WS,所以我想我也应该使用 Camel 的实现。
我想我只需配置一个 Wss4jSecurityInterceptor,但是当我尝试实现它时,我发现 spring-ws 包中缺少整个 org.springframework.ws.soap.security.* 命名空间。
WS-Security 仅支持 Apache CXF 吗?
编辑:这是我设置路线的方式:
from("spring-ws:rootqname:{http://schemas.somewhere.dk/}operation?endpointMapping=#endpointMapping")
.setExchangePattern(ExchangePattern.InOut)
.process(MyProcessor)
.to("jms:queue:test.out");
最佳答案
我最终发现运行“mvn eclipse:eclipse”弄乱了我的 Eclipse 项目文件,这反过来又导致 Eclipse 不更新依赖项。 快速删除/导入现有 Maven 项目后,一切看起来都如预期。
关于java - 使用 Apache Camel 和 Spring-WS 的 WS-Security,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27035700/