简体   繁体   English

带有Apache Camel和Spring-WS的WS-Security

[英]WS-Security with Apache Camel and Spring-WS

I'm currently writing a webservice server in Camel, and need to implement WS-Security (encrypt/sign). 我目前正在用Camel编写一个Web服务服务器,并且需要实现WS-Security(加密/签名)。 In other projects i've used Spring-WS, so i figured i'd use Camel's implementation as well. 在其他项目中,我使用过Spring-WS,所以我也想使用Camel的实现。

I figured i'd just configure a Wss4jSecurityInterceptor, but when i try implement it, i find that the entire org.springframework.ws.soap.security.* namespace is missing from the spring-ws package. 我以为只是配置一个Wss4jSecurityInterceptor,但是当我尝试实现它时,我发现spring-ws包中缺少整个org.springframework.ws.soap.security。*名称空间。

Is WS-Security only supported with Apache CXF ? WS-Security是否仅受Apache CXF支持?

Edit: Here's how i've setup the route: 编辑:这是我设置路线的方式:

from("spring-ws:rootqname:{http://schemas.somewhere.dk/}operation?endpointMapping=#endpointMapping")
.setExchangePattern(ExchangePattern.InOut)
.process(MyProcessor)
.to("jms:queue:test.out");

I eventually found that running "mvn eclipse:eclipse" had messed up my Eclipse project files, which in turn was causing Eclipse to not update dependencies. 我最终发现,运行“ mvn eclipse:eclipse”已经弄乱了我的Eclipse项目文件,这又导致Eclipse无法更新依赖项。 After a quick delete/import existing maven projects, things look as expected. 快速删除/导入现有的Maven项目后,事情看起来像预期的那样。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM