java - 使用 Apache Camel 和 Spring-WS 的 WS-Security

标签 java spring apache-camel spring-ws

我目前正在用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/

相关文章:

java - 支撑 Camel body

java - 为什么使用 Jersey 客户端进行 POST 调用时出现 400 错误代码

java - 引用 Spring 表达式语言中的其他属性

java - Camel::Generic List<Enum> 转换器

java - Spring-JDBC中的隔离级别SERIALIZABLE

java - 在 Spring Data JPA 中创建分页

java - 如何让 Infinispan 与 Camel 一起工作

java - DrJava开关(字符串)问题

java - 在 onTouchListener 中设置宽度

java - 是否可以使用 try-with-resources 语句完全防止异常屏蔽