You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Tim Golz (JIRA)" <ji...@apache.org> on 2017/11/20 23:53:00 UTC

[jira] [Created] (OLINGO-1204) OData Client - duplicate Entityset keys in xml

Tim Golz created OLINGO-1204:
--------------------------------

             Summary: OData Client - duplicate Entityset keys in xml
                 Key: OLINGO-1204
                 URL: https://issues.apache.org/jira/browse/OLINGO-1204
             Project: Olingo
          Issue Type: Bug
          Components: odata2-core
    Affects Versions: V2 2.0.9
         Environment: Java Client compiled and adjusted from the Olingo site
            Reporter: Tim Golz


Hi,
I'm facing the issue that I cannot make a Post to my OData Service over the Java Client example.

I made some minor Adjustments on the code, for example change URL, extend the method's by UserSecret, which is needed in the initialization and added to the RequestProperty. 

Authentication works as expected, the readEdm method works quite well and i'm facing the expected result.

I think the issue could be similiar to this error mentiond [here Olingo-844 title|https://issues.apache.org/jira/browse/OLINGO-844], but didn't really know how to solve or fix. To use the Method: includeMetadataInContentOnly(..) doesn't brought the solution for me. 

{code:java}
----- Create Entry ------------------------------
POST request on uri 'https://****/***/FACEBOOK_ODATA/services.xsodata/FACEBOOK_POSTS' 
with content:
  {
     "d":{
             "__metadata":{
                                    "id":"FACEBOOK_POSTSFACEBOOK_POSTS(datetime'2017-11-20T23%3A17%3A31.581')",
                                    "uri":"FACEBOOK_POSTSFACEBOOK_POSTS(datetime'2017-11-20T23%3A17%3A31.581')",
                                    "type":"FACEBOOK_POSTS.FACEBOOK_POSTSType"
},
   "PAGE_ID":"esmuellert56",
   "CHANGEDAT":"\/Date(1511219851581)\/",
   "POST_ID":"xyzpostidxyz",
   "POST_TEXT":"texttexttext"
   }
}

{code}




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)