问题描述
我想呼吁的HTTPS URL,在需要的客户端认证方式(SSL)一个SOAP Web服务。
I am trying to call a SOAP webservice on an https URL, where client authentification (SSL) is required.
现在我用配置我的春天般地上下文(切换从蓝图的距离)和创建使用骆驼CXF组件与码头运输我的终点。
Right now I am configuring my camel context using spring (switched away from blueprint) and creating my endpoints using the Camel CXF component with jetty as transport.
我找不到这方面的任何很好的例子在那里。也许我应该在码头的使用代替http4。我试图建立一些骆驼sslContextParameters,但我不能看到CXF和/或Jetty这方面的工作。
I can't find any good examples for this out there. Maybe I should be using http4 in stead of Jetty. I was trying to set up some Camel sslContextParameters, but I can't see this working with CXF and/or Jetty.
任何人都可以点我在正确的方向?
Can anyone point me in the right direction?
推荐答案
首先,如果你调用一个SOAP服务,您需要使用骆驼CXF组件,而不是骆驼cxfrs。后者对REST端点。
First, if you're invoking a SOAP service, you need to use the camel-cxf component, not camel-cxfrs. The latter is for REST endpoints.
您说的客户端授权是必需的,但你不指定类型。鉴于你谈论SSL,我会假设你需要配置SSL和HTTP验证。
You say that client authorization is required, but you don't specify which type. Given that you talk about SSL, I will assume you need to configure both SSL and HTTP Auth.
有关SSL,看看:和https://access.redhat.com/documentation/en-US/Red_Hat_JBoss_Fuse/6.0/html/Security_Guide/files/CamelCXF-SecureClient.html.
For SSL, have a look at: https://camel.apache.org/camel-configuration-utilities.html and https://access.redhat.com/documentation/en-US/Red_Hat_JBoss_Fuse/6.0/html/Security_Guide/files/CamelCXF-SecureClient.html.
有关HTTP基本验证,看看在用户名
和密码
选项此处的。
For HTTP Basic Auth, have a look at the username
and password
options here: https://camel.apache.org/cxf.html.
这篇关于调用使用CXF和骆驼的安全web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!