使用安全端口从 wso2 ESB 调用 DataService [英] Invoking DataService from wso2 ESB with secure port
问题描述
我只想从 wso2 ESB 调用安全的 DataService 端点,但找不到正确且直接的解决方案.我看过这个和this 但没有成功!我在 ESB 中定义我的端点如下:WSDL 端点:WSDL URI:http://[myIP]:7763/services/PostPaidProviders?wsdl
I just want to invoke a secure DataService endpoint from wso2 ESB and I couldn't find the right and straight forward solution. I have seen this and this but no success! I define my endpoint in ESB as folows: WSDL Endpoint: WSDL URI: http://[myIP]:7763/services/PostPaidProviders?wsdl
服务:PostPaidProviders
Service: PostPaidProviders
端口:SecureSOAP11Endpoint
Port: SecureSOAP11Endpoint
仅供参考,如果我将端口更改为SOAP11Endpoint",则 ESB 上的代理服务可以正常工作.谢谢
FYI, if I change my Port to 'SOAP11Endpoint' my proxy service on ESB works properly. Thanks
推荐答案
我已经将 WSO2-DSS 的证书从配置 ->KeyStores 导入到我的 ESB 密钥库,但它仍然无法工作.好像不能验证主机名!错误是这样的:错误:[MyHostName] 的主机名验证失败"
I've imported my WSO2-DSS's certificate to my ESB keystore from configuration->KeyStores but it still does not work. It seems that it can not validate the host name! The error was this: "error: Host name verification failed for [MyHostName]"
我在/repository/conf/axis2/axis2.xml 文件的 <transportSender name="https
部分添加了以下参数,重新启动了服务器并且它工作了:)
I added following parameter to the <transportSender name="https
part of /repository/conf/axis2/axis2.xml file, restarted the server and it worked :)
<parameter name="HostnameVerifier">AllowAll</parameter>
这篇关于使用安全端口从 wso2 ESB 调用 DataService的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!