on 11-30-2015 9:49 AM
Hi, we are in datacentre 12, and I got sent the following URL for the OData API:
https://jam12.sapjam.com/api/v1/odata
My question is, should there be a metadata endpoint that I can use to add a service reference so that I don't have to hand-code proxy classes?
I.e. Does a URL like this exist?
https://jam12.sapjam.com/api/v1/odata/$metadata
Regards,
Andrew.
Yes, we support the following metadata URL: https://jam12.sapjam.com/api/v1/OData/$metadata
You can see the documentation for that here: SAP Jam Developer Guide
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Robert, thanks for the reply. Your URL is interesting because it shows as "https://jam12.sapjam.com/api/v1/OData/$metadata" but links to "https://developer.sapjam.com/api/v1/OData/$metadata" under the hood .
Anyhow I tried both URL's. In my web browser they come up fine. However when I use Visual Studio 2015 and try and add a service reference, I get the following error:
There was an error downloading 'https://jam12.sapjam.com/api/v1/OData/$metadata'.
The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF
Metadata contains a reference that cannot be resolved: 'https://jam12.sapjam.com/api/v1/OData/$metadata'.
The HTTP request was forbidden with client authentication scheme 'Anonymous'.
The remote server returned an error: (403) Forbidden.
If the service is defined in the current solution, try building the solution and adding the service reference again.
I suspect the crux of that error is "(403) Forbidden". Is it possible I need to supply credentials to connect, or is there a metadata endpoint exposed that does not have security on it and would allow an anonymous request to the metadata URL?
Cheers.
I should also mention, I have been able to successfully connect to and use the SuccessFactors OData API via URL:
https://api10.successfactors.com/odata/v2/$metadata
When I try to "Add Service Reference" on that one, it pops up a box saying "The server needs to authenticate your request. Your credentials will be sent to the server in clear text. Do you want to continue? (Yes/No)", when I say "Yes" it asks for credentials which I enter and it lets me in.
I would expect the SAP Jam one to do the same if it is secured, but the security must be slightly different on it.
Cheers.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.