cancel
Showing results for 
Search instead for 
Did you mean: 

issue getting the metadata of xsodata in JSON format

former_member188396
Participant
0 Kudos

Hi,

We have created xsodata on the HANA View and everything works fine. I can get the data by calling the service as well.

I could get the metadata also by appending $metadata in the URL. It gives the result in the XML format.

Now, I tried to get the metadata of the xsODATA in JSON format by putting this:

myService.xsodata/$metadata?$format=json

But, it gives below error.

{ "error": { "code": "", "message": { "lang": "en-US", "value": "Not Acceptable: Requested resource is only capable of generating response entities which have content characteristics not acceptable according to the request's HTTP 'Accept' header."}}}

Not sure what is wrong or whether it is allowed or not.

I can get the actual data in the JSON format without any issue. It is just the metadata getting in json format gives this error.

Thanks,

Bhavik

former_member208449
Active Participant

Hi

Seems like it isn't supported. Please check answer in below thread -

https://archive.sap.com/discussions/thread/3465534

Accepted Solutions (1)

Accepted Solutions (1)

former_member188396
Participant
0 Kudos

Thanks Gowthami Bhogireddy

That confirms my doubt. I thought it was not supported, but wanted to get confirmation from others that my assumption is correct.

-bhavik

Answers (0)