Environment: SUP 2.1 ESD 1, IOS 5 emulator, XCode 4.2, Objective C.
I am writing a sample iOS application to access the FlightData SAP OData service. I am able to get the top level collections, display them etc.
But I am unable to figure out how to call queries like GetAvailableFlights.
Could someone please post some Objective C code snippet showing how this is done?
Appreciate your time.
You have to maintain the "Service doc URL" in SCC.(Application>>Proxy>>URL).
From the application make a getApplicationEndPoint call to get the service doc URL.
Consturct the collection URL in the application
When to call makeRequest fir this URL to get back the collection list.
we have the URL working through the browser. We are trying to run it through SUP and currently getting login failed on SCC server logs. We can although login to gateway.
Is there a permission/setting except endpoint that needs to be configured between SCC and gateway?
I will send you the code in a bit.
the set up is all components installed privately in an Org.
For this you have to be aware of how OData Protocol for SAP has been defined and should know what values you need to append to access the data.
Rohith has given a fine example of how to get the next level of data for a particular collection. But my reply here is purely to suggest that fetching purely depends on the URL and its structure and you could try that URL on a browser to test it first before putting it in the application.
Best Regards, Pramod