olingo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vijay Kumar Jalagari <jalag...@adobe.com>
Subject Metadata Parser is unable to parse external references of Microsoft dynamics CRM Odata metadata
Date Mon, 27 Mar 2017 05:46:28 GMT

Hi All,

I am using Olingo to connect to Odata service endpoints provided by Microsoft Dynamics. But
the metadata parsing fails if the main metadata document refers another document which has
a different scheme or host name to that of the original metadata document.

Short Description
The metadata document provided by Microsoft Dynamics Odata service refers two other metadata
http://vocabularies.odata.org/OData.Community.Keys.V1.xml and

For parsing the original metadata document, Olingo client need to fetch the referenced metadata
documents as well. But Olingo client imposes a restriction that the referenced document should
have same host, scheme and port as that of the document which is referring to this document.
This check fails, and following exception is thrown by Olingo

java.lang.IllegalArgumentException: The referenced EDMX document has the URI 'http://vocabularies.odata.org/OData.Community.Keys.V1.xml'
where scheme, host, or port is different from the main metadata document URI 'https://<dynamicsInstance>api/data/v8.1/$metadata'

The JIRA issue [0] has more details.

OData protocol ([1]) does not impose any restriction on where the referenced metadata document
should come from - as opposed to Olingo restriction of same scheme, host and port. Can someone
please take a look at the JIRA issue and give an idea about the original intention behind
this restriction.

[0] - https://issues.apache.org/jira/browse/OLINGO-1008
[1] - http://docs.oasis-open.org/odata/odata/v4.0/odata-v4.0-part1-protocol.html

Vijay Kumar J

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message