You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@olingo.apache.org by "Mohammed.M" <mo...@gmail.com> on 2017/06/09 10:55:53 UTC
Error : Invalid or missing namespace for 'Schema'.
I got this error when i call EntityProvider.readMetadata using Olingo
OData2 with the below error error stack :
SEVERE: Invalid or missing namespace for 'Schema'.
org.apache.olingo.odata2.api.ep.EntityProviderException: Invalid or missing
namespace for 'Schema'.
at org.apache.olingo.odata2.core.ep.consumer.XmlMetadataConsumer.
checkEdmNamespace(XmlMetadataConsumer.java:945)
at org.apache.olingo.odata2.core.ep.consumer.XmlMetadataConsumer.
readMetadata(XmlMetadataConsumer.java:101)
at org.apache.olingo.odata2.core.edm.provider.EdmxProvider.
parse(EdmxProvider.java:51)
at org.apache.olingo.odata2.core.ep.ProviderFacadeImpl.readMetadata(
ProviderFacadeImpl.java:231)
at org.apache.olingo.odata2.api.ep.EntityProvider.
readMetadata(EntityProvider.java:876)
the $metadata is :
<?xml version="1.0" encoding="utf-8"?>
<edmx:Edmx Version="1.0" xmlns:edmx="http://schemas.
microsoft.com/ado/2007/06/edmx">
<edmx:DataServices m:DataServiceVersion="2.0"
m:MaxDataServiceVersion="3.0" xmlns:m="http://schemas.
microsoft.com/ado/2007/08/dataservices/metadata">
<Schema Namespace="MPDataServiceModel" xmlns="http://schemas.
microsoft.com/ado/2009/11/edm">
<EntityType Name="tblEvent">
<Key>
<PropertyRef Name="Id" />
</Key>
<Property Name="ProjectId" Type="Edm.String" MaxLength="18"
FixedLength="true" Unicode="true" />
<Property Name="Event" Type="Edm.String" MaxLength="80"
FixedLength="false" Unicode="true" />
<Property Name="EventDate" Type="Edm.DateTime"
Precision="3" />
<Property Name="Id" Type="Edm.Int32" Nullable="false"
p6:StoreGeneratedPattern="Identity" xmlns:p6="http://schemas.
microsoft.com/ado/2009/02/edm/annotation" />
</EntityType>
<EntityType Name="tblFavourite">
<Key>
<PropertyRef Name="Id" />
</Key>
<Property Name="UserID" Type="Edm.Int32" Nullable="false" />
<Property Name="ProjectId" Type="Edm.String"
Nullable="false" MaxLength="18" FixedLength="true" Unicode="true" />
<Property Name="Id" Type="Edm.Int32" Nullable="false"
p6:StoreGeneratedPattern="Identity" xmlns:p6="http://schemas.
microsoft.com/ado/2009/02/edm/annotation" />
</EntityType>
</Schema>
<Schema Namespace="ODATA01.Model" xmlns="http://schemas.
microsoft.com/ado/2009/11/edm">
<EntityContainer Name="DataServiceEntities"
m:IsDefaultEntityContainer="true" p6:LazyLoadingEnabled="true" xmlns:p6="
http://schemas.microsoft.com/ado/2009/02/edm/annotation">
<EntitySet Name="tblEvents"
EntityType="MPDataServiceModel.tblEvent"
/>
<EntitySet Name="tblFavourites" EntityType="
MPDataServiceModel.tblFavourite" />
</EntityContainer>
</Schema>
</edmx:DataServices>
</edmx:Edmx>