You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Ramesh Reddy (JIRA)" <ji...@apache.org> on 2017/03/01 16:56:45 UTC
[jira] [Commented] (OLINGO-861) MetaDataParser unable to build
EdmProvider from Edmx files with references
[ https://issues.apache.org/jira/browse/OLINGO-861?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15890541#comment-15890541 ]
Ramesh Reddy commented on OLINGO-861:
-------------------------------------
something like ?
{code}
metadataParser.referenceResolver(new ReferenceResolver(){
public InputStream resolveReference(URI referenceUri, String xmlBase) {
if (referenceUri.toASCIIString().equals("http://redfish.dmtf.org/schemas/v1/Message.xml")){
return new FileInputStream("mylocalcopy.xml");
}
return null;
}
});
{code}
> MetaDataParser unable to build EdmProvider from Edmx files with references
> --------------------------------------------------------------------------
>
> Key: OLINGO-861
> URL: https://issues.apache.org/jira/browse/OLINGO-861
> Project: Olingo
> Issue Type: Bug
> Components: odata4-server
> Affects Versions: (Java) V4 4.1.0
> Reporter: VIJAYASIMHA R NAGA
> Assignee: Ramesh Reddy
> Fix For: (Java) V4 4.2.0
>
> Attachments: MyODataDemoService.zip, ServiceRoot.xml
>
>
> Unable to build an EdmProvider from Edmx files with references to external name spaces, (Method "readReference" in MetaDataParser.java from server-core-ext library has a TODO remark to deal with this)
> Ex: Having the below reference included in an Edmx file <edmx:Reference Uri="http://docs.oasis-open.org/odata/odata/v4.0/cs01/vocabularies/Org.OData.Core.V1.xml"> <edmx:Include Namespace="Org.OData.Core.V1" Alias="OData"/> </edmx:Reference>
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)