Skip to Content
Jan 29, 2020 at 08:37 AM

WebSocket implementation in SAPUI5 fails, error 404.

1511 Views Last edit Jan 29, 2020 at 09:22 AM 2 rev

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://' failed: Error during WebSocket handshake: Unexpected response code: 404

This is my code, written in the onInit():"");
this.oWs = new'/sap/bc/apc/sap/zapc_test');