有没有一种方法可以将肥皂位置协议从http路由到https?

时间:2019-06-01 16:41:34

标签: java spring wsdl cxf wsdl2java

我的服务运行良好。当前,我们添加了一个负载均衡器,并且需要通过https连接一切。

我在一个服务端口上拒绝连接。

问题是,这个肥皂地址-无论我在构建之前放什么,都默认为服务器url和协议http。我正在使用apache cxf,并尝试在cmx-beans.xml中使用绑定属性和endPointUrl。

我没有使用弹簧靴。

我尝试了cmx-beans.xml属性,并在代码库中使用了绑定属性。

<wsdl:service name="nameservice">
<wsdl:port binding="tns:nameServiceServiceSoapBinding" 
name="nameServicePort">
<soap:address location="https://url/services/nameServicePort"/>
</wsdl:port>
</wsdl:service>

连接只是说连接被拒绝到“ http://url

由以下原因引起:java.net.ConnectException:调用http://url/name/services/nameServicePort的ConnectException:连接被拒绝

我尝试了以下方法,这些方法看起来很有希望,但没有效果。 WSDL binding URL changes protocol to HTTP when behind an SSL termination

0 个答案:

没有答案
相关问题