Quantcast
Viewing all articles
Browse latest Browse all 3285

Cannot get WebSocket endpoint from HanaCloud

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 3285

Trending Articles