OData service authentication with SAP Gateway service OpenUI5

chiranjeevigk

i have a service url as below

http://<hostName>:2020/sap/opu/odata/sap/ZTEST_SRV$metadata

When i call this from Chrome browser i ask for username and password if i give username and password, it will show the XML with all the entity sets in that service URL

but in code if i create the instance

var model = new sap.ui.model.odata.v2.ODataModel("http://<hostName>:2020/sap/opu/odata/sap/ZTEST_SRV/",true,'username','password');

its shows the 401 Error

how can i solve this?

My app is not deployed in ABAP repo, or Fiori, this is deployed in other Host on Tomcat

chiranjeevigk

We can solve this is 2 ways

1: We can use SimpleProxyServlet

2 Establish a Reverse Proxy with Apache HTTP Server

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Return delta from SAP OData Sample service

From Dev

How to read an aggregated entity from Odata Service SAP ui5

From Dev

SSO authentication angular application with service gateway call

From Dev

Configuring nginx with an API Gateway & authentication service

From Dev

Why should API gateway and authentication service be different?

From Java

SAP Cloud SDK method for output service in OData form

From Dev

How to execute integrationtests for own OData service in SAP Cloud SDK

From Dev

Basic authentication for WCF OData service - turn off logon rederection

From Dev

WAAD Authentication with WebAPI OData service consumed by Excel PowerQuery

From Dev

How to pass authentication header (basic) to OData Service from a .NetClient

From Dev

istio JWT authentication for single service behind ingress gateway

From Dev

OData Service Versioning

From Dev

OData service data binding

From Dev

OData service in Cordova

From Dev

OpenUI5 sap.m.Input Currency Formatting

From Dev

How do I access OData service using the SAP S/4HANA Cloud SDK in existing application?

From Java

Send POST request to OData service using SAP Cloud SDK version 3.2.0

From Java

How to avoid a DestinationAccessException when sending a POST request to an OData service using SAP Cloud SDK version 3.2.0

From Dev

Use SAP Cloud SDK to integrate with a custom backend service (oData) based on VDM Generator

From Dev

How to deal with odata service created with 1000 rows of hana table in SAP hana XS app

From Dev

Google Service to Service Authentication Not Working

From Dev

Call to service by the gateway is not found

From Dev

Gateway Service Prefix

From Dev

How to perform DELETE operation on Northwind OData Service (SAPUI5)?

From Dev

Error in calling Filter URL odata service sapui5

From Dev

Binding an AnalyticMap Model with an OData service in UI5

From Dev

How to create an OData service for SAPUI5 TreeTable?

From Dev

SAPUI5 Dynamic Databinding (Key for OData-Service)

From Dev

Cross-Service references in OData

Related Related

  1. 1

    Return delta from SAP OData Sample service

  2. 2

    How to read an aggregated entity from Odata Service SAP ui5

  3. 3

    SSO authentication angular application with service gateway call

  4. 4

    Configuring nginx with an API Gateway & authentication service

  5. 5

    Why should API gateway and authentication service be different?

  6. 6

    SAP Cloud SDK method for output service in OData form

  7. 7

    How to execute integrationtests for own OData service in SAP Cloud SDK

  8. 8

    Basic authentication for WCF OData service - turn off logon rederection

  9. 9

    WAAD Authentication with WebAPI OData service consumed by Excel PowerQuery

  10. 10

    How to pass authentication header (basic) to OData Service from a .NetClient

  11. 11

    istio JWT authentication for single service behind ingress gateway

  12. 12

    OData Service Versioning

  13. 13

    OData service data binding

  14. 14

    OData service in Cordova

  15. 15

    OpenUI5 sap.m.Input Currency Formatting

  16. 16

    How do I access OData service using the SAP S/4HANA Cloud SDK in existing application?

  17. 17

    Send POST request to OData service using SAP Cloud SDK version 3.2.0

  18. 18

    How to avoid a DestinationAccessException when sending a POST request to an OData service using SAP Cloud SDK version 3.2.0

  19. 19

    Use SAP Cloud SDK to integrate with a custom backend service (oData) based on VDM Generator

  20. 20

    How to deal with odata service created with 1000 rows of hana table in SAP hana XS app

  21. 21

    Google Service to Service Authentication Not Working

  22. 22

    Call to service by the gateway is not found

  23. 23

    Gateway Service Prefix

  24. 24

    How to perform DELETE operation on Northwind OData Service (SAPUI5)?

  25. 25

    Error in calling Filter URL odata service sapui5

  26. 26

    Binding an AnalyticMap Model with an OData service in UI5

  27. 27

    How to create an OData service for SAPUI5 TreeTable?

  28. 28

    SAPUI5 Dynamic Databinding (Key for OData-Service)

  29. 29

    Cross-Service references in OData

HotTag

Archive