on 2022 Oct 24 3:41 PM
Hi everyone,
I'm currently struggling to create a working WebSocket connection from BAS (BTP) to an On-Premise SAP System. I want to start the application during development and not only have valid OData requests but also a live WebSocket connection to the On-Premise backend. There isn't any application router or anything like that, just a simple UI5 app running through the FLP sandbox during development.
The "/SAP/BC/APC" path + all sub-paths, is maintained and (Active + WebSocket Upgrade option flagged as described here: https://btp.udina.de/development/websocket.html#cloud-to-on-premise-access-control-ressources - can also be seen in "more official" BAS related docs) within the Cloud Connector.
When the app itself is deployed on the target system, opening the App from within the system using WebSockets works, but when it is to be routed through the UX Tools Proxy Middleware this is not the case and it err's out with:
The OData connections work flawlessly and I'm able to work with them without any issue, only when trying to use WebSockets it seem to cause this. According to this: https://www.npmjs.com/package/@sap/ux-ui5-tooling#proxying-websockets - it looks pretty straight forward. You just enable the WebSocket proxying by setting "ws" to true + have the Cloud Connector maintained accordingly.
Of course within the On-Premise system the ICF paths are also active but it doesn't even get that far from what I can tell.
I'm running the latest version of "@sap/ux-ui5-tooling" which is 1.7.6 at the time of asking this question. The "customMiddleware" section for the "fiori-tools-proxy" looks like this:
Not sure what I'm missing here. Any Ideas, hints or pointers are greatly appreciated! 🙂
Note:
There is a similar, if not exact same question here, sadly without answer: https://answers.sap.com/questions/13518750/establish-websocket-connection-to-on-premise-syste.html
Request clarification before answering.
Well ... according to the incident I raised, this scenario is currently not supported by SAP. Sadly this is nowhere mentioned in the documentation, which is even sadder, as the "ux-ui5-tooling" is supposed to be the go-to tooling for UI5 development, especially when you're in BAS (at least that's one reason it is used as preset for booting up a Dev. environment, isn't it?).
I was offered to mail someone from SAP to ask for this feature. Not sure where we go from here or how fast that'd be added. For now I guess a deployment is necessary whenever we want to test something regarding the WebSocket implementation/usage.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please file it as an influencing request in the opportunity for SAP Business Application Studio.
Is local development with VS Code an option?
Hi gregor.wolf,
local development with VSCode is currently not an option. It would be if the project setup and a few circumstances were different.
Regarding the influencing request. Do you think direct contact to the person mentioned from SAP's side would result in the same?
Thanks again for your guidance!
Please file the influencing request first and then reach out to the SAP contact. Without the influencing request there is no tracking. Of course you have to advertise your request to get votes.
Please support Customer Influence Request Support of proxying WebSocket requests from BAS to On-Premise systems
Greetings
Sebastian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sebastian, I forgot adding the link after creating the Influence Request. Thank you for that! 🙂
Kind Regards,
Marco
User | Count |
---|---|
66 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.