Uploaded image for project: 'Olingo'
  1. Olingo
  2. OLINGO-1439

Odata V4 Android - can't parse edmx

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • (Java) V4 4.7.1
    • None
    • odata4-client
    • None
    • Latest Android Studio api 29

    Description

      Hi,
      I am trying to create a sample test android app using (Olingo-OData-Client-for-Android-4.7.1-lib).  Just a simple skeleton activity with 1 AsyncTask to run the method:
      Edm edm =  client.getRetrieveRequestFactory().getMetadataRequest(mServiceRoot).execute().getBody();
      -> mServiceRoot = "https://services.odata.org/Experimental/OData/OData.svc/"
      I have tried many different variations and all I get is "Could not parse as Edmx document".
      With browser it looks fine so why can't Olingo parse the metadata?  I could be missing something critical but can't find any reference to this issue anywhere.
       
      i.e.
      "<edmx:Edmx xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx" Version="4.0">
      <edmx:DataServices>
      <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="ODataDemo">
      <EntityType Name="Product">
      <Key>
      <PropertyRef Name="ID"/>
      </Key>......................"
       
       
      Thank you, Web

      Attachments

        Activity

          People

            Unassigned Unassigned
            dodgerz web dodge
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: