on ‎2013 Nov 19 6:36 AM
Request clarification before answering.
What also might be the issue, I see you are using Chrome. When your OData service is on your server, and your front end code is on your localhost (you have to use a localhost if you are going to develop locally on your computer first), then you have to open chrome in a different mode.
Close all your open chrome windows. Create a shortcut on your desktop, right click and choose 'properties' At the 'target', add --disable-web-security.
Open your shortcut, chrome will give you a warning but you can ignore that. By default chrome blocks cross origin requests and this causes issues when you want to call your service from your localhost. By opening chrome with the web security disable, you can make cross origin requests.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you tried something like this:
DATA : http_client TYPE REF TO IF_HTTP_CLIENT.
CALL METHOD http_client->request->set_header_field
EXPORTING
name = 'Access-Control-Allow-Origin'
value = '*'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Karthik,
Did you test odata service in gateway client.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
please see below post it may helpful
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.