cancel
Showing results for 
Search instead for 
Did you mean: 

Soft State for UI5 and browser request not working

0 Kudos

I introduced the Soft State mechanism for my OData service as detailled in blog post How to use Soft-State support for OData services by Andre Fischer, many thanks for the blog post.

My OData service is used by a custom UI5 application which could make good use of a perfomance improvement on a specific task. I followed the steps of the blog post to understand the soft state and how to apply it but came up with an issue for UI5 which I couldn't find addressed so far.

I was able to see that the soft state is working when I use the Gateway Client in SAP GUI (/IWFND/GW_CLIENT - Gateway Client). On the other hand if the request is send by an URL request from browser or from a UI5 model request within a browser (Chrome) the Soft State is not working.

It appears in the latter case that each time a new session is created (I hit F5/enter or navigate within UI5 application) I wouldn't know how to force the browser to re-use the session to be honest. Also the UI5 model doesn't allow me to force a session re-use ?

When calling the URL in the Gateway client I can perfectly see the response parameter:

sap-processing-info ODataBEP=,crp=,st=,MedCacheHub=,codeployed=,softstate=X

This is not the case when calling from browser.

The break point in /IWBEP/IF_MGW_SOST_SRV_RUNTIME~OPERATION_START is reached when called by Gateway client and when called from browser, but in fact not called when called by UI5 request.

So I guess it is rather a question regarding the client side of it and especially UI5 configuration? However I hope anyone ever needed to really use the soft state like I do from within a UI5 application

best regards

Stefan

junwu
Active Contributor
0 Kudos

how you are calling the service from UI5?

how you test? from webide? or fiori launchpad? do you have web dispatcher in between?

0 Kudos

Hi,

your question is absolutely valid:

I use WebIDE as IDE and in fact only tried it there initially but also deployed it and used the NetWeaver as runtime. No dispatcher in between.The UI5 application uses V2 OData Model defined by manifest (no funny settings).

I realized when I consume the Gateway by calling the WebIDE destination as URL it is not actually entering the OPERATION_START method.. But when I called the service directly on the NetWeaver SICF endpoint it behaves as expected: entering the OPERATION_START and using the soft state. That's why I figured UI5 might have issues running in WebIDE (Jetty). Alas even when calling the BSP on the NetWeaver (No WebIDE/Jetty) the OPERATION_START is not called and also the soft state is not really activated. It seems to be isolated calls on every GET request.

Is there some way to tell UI5 Odata model to use soft state/reuse Http session?

best

Stefan

Accepted Solutions (0)

Answers (0)