Quantcast
Channel: SCN : All Content - SAP Gateway
Viewing all articles
Browse latest Browse all 2823

Consume External OData in SAP Gateway

$
0
0

I have metadata service that looks like this...

 

<edmx:Edmxxmlns:edmx="http://schemas.microsoft.com/ado/2007/06/edmx"Version="1.0">

 

<edmx:DataServicesxmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"m:DataServiceVersion="3.0"m:MaxDataServiceVersion="3.0">

 

 

<Schemaxmlns="http://schemas.microsoft.com/ado/2009/11/edm"Namespace="HaworthEnterpriseInterfaceService.Models">

 

 

<EntityTypeName="PROE_SPEED">

 

 

<PropertyName="PROE_SPEED_ID"Type="Edm.Int64"Nullable="false"/>

 

<PropertyName="PART_NUMBER"Type="Edm.String"/>

<PropertyName="PARAMETER_NAME"Type="Edm.String"/>

<PropertyName="PARAMETER_VALUE"Type="Edm.String"/>

<PropertyName="REVISION"Type="Edm.String"/>

<PropertyName="VERSION"Type="Edm.String"/>

<PropertyName="RELEASE_LEVEL"Type="Edm.String"/>

<PropertyName="CREATED_BY"Type="Edm.String"/>

<PropertyName="CREATION_DATE"Type="Edm.DateTime"/>

<PropertyName="LAST_UPDATED_BY"Type="Edm.String"/>

<PropertyName="LAST_UPDATE_DATE"Type="Edm.DateTime"/>

<PropertyName="AMAPS_PART_NUMBER"Type="Edm.String"/>

</EntityType>

</Schema>

 

<Schemaxmlns="http://schemas.microsoft.com/ado/2009/11/edm"Namespace="Default">

 

 

<EntityContainerName="Container"m:IsDefaultEntityContainer="true">

 

 

<EntitySetName="SPEED_SPDD_PROE_SPEED"EntityType="HaworthEnterpriseInterfaceService.Models.PROE_SPEED"/>

 

<EntitySetName="SPEED_SPDP_PROE_SPEED"EntityType="HaworthEnterpriseInterfaceService.Models.PROE_SPEED"/>

</EntityContainer>

</Schema>

</edmx:DataServices>

</edmx:Edmx>


This does not make it pass the parsing. I debugged and found in class /IWFND/CL_OCI_PARSER they are replacing certain schemas in the compose_unrecognized method.

  DATA: ls_unrec TYPE ty_s_unrec   .

*  ls_unrec-actual   = 'MaxLength="Max"'.
*  ls_unrec-expected = 'MaxLength=""'.
*  APPEND ls_unrec TO mt_unrecognized .
*
*  ls_unrec-actual   = 'MaxLength="MAX"'.
*  ls_unrec-expected = 'MaxLength=""'.
*  APPEND ls_unrec TO mt_unrecognized .

   ls_unrec
-actual   = 'xmlns="http://schemas.microsoft.com/ado/2007/05/edm">'.
   ls_unrec
-expected = 'xmlns="http://schemas.microsoft.com/ado/2008/09/edm">'.
  
APPEND ls_unrec TO mt_unrecognized .

* Example: http://www.nerddinner.com/SERVICES/ODATA.SVC/$metadata
   ls_unrec
-actual   = 'xmlns="http://schemas.microsoft.com/ado/2006/04/edm">'.
   ls_unrec
-expected = 'xmlns="http://schemas.microsoft.com/ado/2008/09/edm">'.
  
APPEND ls_unrec TO mt_unrecognized .

* Example: Azure market place services
   ls_unrec
-actual   = 'http://schemas.microsoft.com/ado/2009/08/edm'.
   ls_unrec
-expected = 'http://schemas.microsoft.com/ado/2008/09/edm'.
  
APPEND ls_unrec TO mt_unrecognized
.


Does anyone know if this could be updated, perhaps even made into a customizing table?


Thanks,

Alex


Viewing all articles
Browse latest Browse all 2823

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>