cancel
Showing results for 
Search instead for 
Did you mean: 

What is the Metadata URL for SAP Jam OData?

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

robert_horne
Employee
Employee
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

robert_horne
Employee
Employee
0 Kudos

Hi Andrew. I've asked one of my team to take a look. I don't currently have VS installed. Hang tight for a bit.

Adam_Stone
Active Contributor
0 Kudos

Hi Andrew, we've discovered a few hurdles in getting this to work within Visual Studio.  We are working on a way to get this to work.  We will provide you with the documentation on this once ready.

Thanks,
Adam