Quantcast
Channel: SCN : Discussion List - SAP HANA Cloud Platform Developer Center
Viewing all articles
Browse latest Browse all 3131

Cannot get WebSocket endpoint from HanaCloud

$
0
0

Hello,

 

I am using websockets in my SAP HCP Java application. Regarding some blogs, it is supposed to work.

Actually all is working fine when I test it using SAP Hana cloud on the localhost, but when I try it on hanatrial.ondemand.com, it doesn't work.

 

here is the call in the JSP, the client,

 

On localhost, the following is working fine:

ws = new WebSocket("ws://localhost:8091/test-healthcare/ConAn");

 

Now on hana cloud, I changed the URI to

ws = new WebSocket("wss://conan2i050912trial.hanatrial.ondemand.com/test-healthcare/ConAn");

 

and I have the error:

 

     WebSocket connection to 'wss://conan2i050912trial.hanatrial.ondemand.com/test-healthcare/ConAn' failed: Error in connection establishment: net::ERR_NAME_NOT_RESOLVED

 

Any idea on what is wrong ? should I specify a proxy ?

 

Thanks a lot

Philippe


Viewing all articles
Browse latest Browse all 3131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>