Hello Team, I have an ODATA service which takes in the URL and the URL is another OData service
Example of URL in ODATA Service:- (http://services.odata.org/V3/Northwind/Northwind.svc/Categories(1)) Now I try to make a $metadata call using above URL and parse the EDM and would prepare a hash map for making a writeEntry() call >From the URL like given above I should be able to get the service root, >navigation property and key properties . Can you please help how we can address this using the Olingo Api's Thanks and Regards, Aparna -----Original Message----- From: Klevenz, Stephan [mailto:stephan.klev...@sap.com] Sent: Friday, March 14, 2014 4:40 PM To: dev@olingo.incubator.apache.org Subject: Re: How to set the service root in Olingo Can you please explain your use case a little bit more in detail? If you want to implement a ODataSingleProcessor then all detailed uri information is already available: a) Service root -> via ODataContext which is available in processor instance b) OData uri -> via the UriInfo object that is given to each processor method Is this what you want? -- Stephan On 14.03.14 11:44, "Khare, Aparna" <aparna.kh...@sap.com> wrote: >Hello Team, > > Please can you help us with the issue we are facing :- > >I have a edm file and I'm able to create an EDMprovider from that. > >The edmx will have a URL which is a string field . > >In my application I would want to get the service root from the string url > >Eq:- >http://services.odata.org/OData/OData.svc/Category(1)/Products?$top=2&$ord >erby=name >_______________________________________/ __________________/ >_________________/ > | | | > service root URI resource path query >options > >Can you please help us with this. > >I would have to read the service root ,resource path and key property in >case of a PUT >(http://services.odata.org/V3/Northwind/Northwind.svc/Categories(1)) > > >Thanks and Regards, >Aparna