cancel
Showing results for 
Search instead for 
Did you mean: 

OData MetaData Parsing Error

Former Member
0 Kudos

Hi everybody,

I am about to parse the metadata and the service document of an REST-WebService via Odata.

Therefore I am using the SDMParser and the sdmParseODataSchemaXML(metaDataXML,ServiceDoc) but I getting the following error:

Entity set refers to an unknown entity Type!

So this means that the service doc xml does not match the metadata?

What can I do now?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Is the format of that service document in the form of SAP-OData format ?

Former Member
0 Kudos

Good question...

the service doc starts like this:

<?xml version="1.0" encoding="utf-8"?><app:service xml:base="http://xxxx.xxxxx.xxxx.de.xxxx.xxxx.com:8002/sap/opu/sdata/sap/ZUAM_REQUESTS/" xmlns:app="http://www.w3.org/2007/app" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sap="http://www.sap.com/Protocols/SAPData" xmlns:gp="http://www.sap.com/Protocols/SAPData/GenericPlayer" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"><app:workspace m:IsDefaultEntityContainer="true" sap:semantics="things"><atom:title>Things</atom:title></app:workspace>

and the metadata doc starts like this:

<?xml version="1.0" encoding="utf-8"?><edmx:Edmx Version="1.0" xmlns:edmx="http://schemas.microsoft.com/ado/2007/06/edmx" xmlns:gp="http://www.sap.com/Protocols/SAPData/GenericPlayer" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:sap="http://www.sap.com/Protocols/SAPData"><edmx:DataServices m:DataServiceVersion="2.0"><Schema Namespace="ZUAM_REQUESTS" xmlns="http://schemas.microsoft.com/ado/2008/09/edm">

or how can I prove this?

Former Member
0 Kudos

has nobody a tip for me?

0 Kudos

Hi Stefan,

This is sample Sdata Service doc which is supported by SUP 2.1

<?xml version="1.0" encoding="utf-8"?><app:service xml:base="http://lxxxx.xxx.xxxx.xx:50080/sap/opu/sdata/iwfnd/RMTSAMPLEFLIGHT/" xmlns:app="http://www.w3.org/2007/app" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sap="http://www.sap.com/Protocols/SAPData" xmlns:gp="http://www.sap.com/Protocols/SAPData/GenericPlayer"

xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:ux="http://www.sap.com/Protocols/OData4SAP/UX">

xmlns:ux="http://www.sap.com/Protocols/OData4SAP/UX this wht i see is missing ,

But I'm not sure if this has anything to do with your Sdata format support.

Regards,

Rajashree