[ 
https://issues.apache.org/jira/browse/OLINGO-1204?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tim Golz updated OLINGO-1204:
-----------------------------
    Summary: OData Client - duplicate Entityset keys in json  (was: OData 
Client - duplicate Entityset keys in xml)

> OData Client - duplicate Entityset keys in json
> -----------------------------------------------
>
>                 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
>              Labels: newbie
>
> Hi,
> I'm facing the issue that I cannot make a Post to my OData Service over the 
> Olingo 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)

Reply via email to