Quantcast
Channel: SCN : Discussion List - BI Platform
Viewing all articles
Browse latest Browse all 5403

How to add Accept Headers to OData service requests from Business Intelligence Information Design Tool?

$
0
0

I'm using Business Intelligence Information Design Tool 4.1 SP2 and attempting to hit an OData Web API service I'm creating in MS Visual Studio 2013.

I'm able to browse my service's metadata (see available data sets and columns), and also to submit $select statements against the service.

 

The BI tool is choking on the results it gets back, though, with error message "ParseError at [row,col]:[1,1], Message: Content is not allowed in prolog." I think the SAP tool only supports the older, more verbose atom+xml format, while the service sends data out serialized in the jsonLITE format by default. This format is new with ODATA v3.0, so I suspect the SAP BI tool doesn't understand it, since it says it explicitly states that it supports ODATA v2.0.

 

The MS documentation says to request different content types by adding HTTP Accept headers to the web service request, specifically adding:

     Accept: application/atom+xml

to request the older format.

 

However, I can't find any place within Information Design tool to specify Accept headers. The tool doesn't appear to send Accept headers of any format.

 

Does anyone know how to sneak such headers into the ODATA requests?


Viewing all articles
Browse latest Browse all 5403

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>