Invoking DataService from wso2 ESB with secure port

别来无恙 提交于 2019-12-24 20:26:08

问题


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

Service: PostPaidProviders

Port: SecureSOAP11Endpoint

FYI, if I change my Port to 'SOAP11Endpoint' my proxy service on ESB works properly. Thanks


回答1:


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]"

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>


来源:https://stackoverflow.com/questions/16892419/invoking-dataservice-from-wso2-esb-with-secure-port

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!