Skip to Content
0
Former Member
Feb 17, 2015 at 10:52 AM

Odata model cannot be created

22 Views

Hi there,

in my application (running on NW 7.40 AS Java) I'm creating a model via

// Create tasks.svc model
var tasksSvcURL = "/bpmodata/tasks.svc";
                      
var tasksODataModel = new sap.ui.model.odata.ODataModel( tasksSvcURL, false);

This is working fine.

Now we want to make the application accessible from outside our network.

So the new URL won't be http://<saphost>:<port>/<sapui5 application>, but https://<external_url>/<sapui5 application>.

In net scaler we replace then "https://<external_url>" with "http://<saphost><port>"

From outside the network it's working fine.

But if I call my application via https://<external_url>/<sapui5 application> from inside the network, I receive the following error:

"Uncaught TypeError: Cannot read property 'dataServices' of undefined".

This happens when the model is created (line 4 in the code above).

It seems that the authentification is not valid although the user has to enter the credentials when opening the application.

What could be the reason for this behavior?

Thanks in advance!

Best regards,

Thorsten.