Hello guys,
I have created an ABAP Push Channel, and i have an SAPUI5 application. I have tested the APC, and it is working , using the dedicated RUN button in the system. The problem is when i try to create the WebSocket in SAPUI5, it gives me an error. As an argument i placed the service path of the APC created in my system. I think i'm missing something but i am not sure what. I have followed the example from "ABAP to the future " book, which is a 2016 book(might be too old). I think it might be something related to the protocol i use , but i don't know other alternative.
The error i receive:
WebSocket connection to 'wss://webidetesting8473768-mxxxxxxtrial.dispatcher.hanatrial.ondemand.com/sap/bc/apc/sap/zapc_test' failed: Error during WebSocket handshake: Unexpected response code: 404
This is my code, written in the onInit():
jQuery.sap.require("sap.ui.core.ws.WebSocket"); this.oWs = new sap.ui.core.ws.WebSocket('/sap/bc/apc/sap/zapc_test');