Invoking DataService from wso2 ESB with secure por

2019-09-04 19:30发布

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条回答
兄弟一词,经得起流年.
2楼-- · 2019-09-04 20:23

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>
查看更多
登录 后发表回答