You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@olingo.apache.org by Steven Veum <St...@progress.com> on 2016/03/22 21:18:55 UTC

Salesforce Lightning Connect compatibility

I have been writing a OData service using Olingo V4 library.  One of the goals of this service it to interact with Salesforce Lightning Connect (LC). LC supports both OData V2 and V4.  I am specifically targeting their V4 client.  I can successfully get LC to setup the entity sets as external objects, but when I actually try access the external objects it fails.  When if fails, LC appears to be making a request for the service document while passing in the header that requires the full metadata be returned:

The content-type range 'application/json;odata.metadata=full' is not supported as value of the Accept header.

I realize Olingo 4.1 does not yet support "full" level of metadata.  I was wondering if anyone has encountered this issue and whether they knew of any work around or fix.  I have seen other questions<https://issues.apache.org/jira/browse/OLINGO-778> on the questions list related to using Salesforce, so I am hopeful that there is a simple work-around to this issue.





Re: Salesforce Lightning Connect compatibility

Posted by Ramesh Reddy <ra...@redhat.com>.
Steven, 

odata.metadata=full is generally not supported yet in Olingo. so if you drop that from the header you should see the service document fine. Anyway, odata.metadata=full for service document does not have any meaning AFAIK. 

Ramesh.. 

----- Original Message -----

> I have been writing a OData service using Olingo V4 library. One of the goals
> of this service it to interact with Salesforce Lightning Connect (LC). LC
> supports both OData V2 and V4. I am specifically targeting their V4 client.
> I can successfully get LC to setup the entity sets as external objects, but
> when I actually try access the external objects it fails. When if fails, LC
> appears to be making a request for the service document while passing in the
> header that requires the full metadata be returned:

> The content-type range 'application/json;odata.metadata=full' is not
> supported as value of the Accept header.

> I realize Olingo 4.1 does not yet support “full” level of metadata. I was
> wondering if anyone has encountered this issue and whether they knew of any
> work around or fix. I have seen other questions on the questions list
> related to using Salesforce, so I am hopeful that there is a simple
> work-around to this issue.