[
https://issues.apache.org/jira/browse/OLINGO-277?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Christian Amend resolved OLINGO-277.
------------------------------------
Resolution: Fixed
Fix Version/s: (was: V2 1.2.0)
V2 2.0.0
Assignee: Christian Amend (was: Michael Bolz)
Hi,
this issue was resolved with the V2 2.0.0 version. There is a ContentOnly flag
at the EntityProviderWriteProperties which can be used for this behaviour.
Best Regards,
Christian
> Creating plain JSON payload required for SAP HANA
> -------------------------------------------------
>
> Key: OLINGO-277
> URL: https://issues.apache.org/jira/browse/OLINGO-277
> Project: Olingo
> Issue Type: Improvement
> Components: odata4-client
> Reporter: Dilip Patidar
> Assignee: Christian Amend
> Labels: json
> Fix For: V2 2.0.0
>
> Original Estimate: 12h
> Remaining Estimate: 12h
>
> We use static method "writeEntry(String contentType, EdmEntitySet entitySet,
> Map<String,Object> data, EntityProviderWriteProperties properties)" from
> class "EntityProvider" to get the json payload for the systems which only
> accepts json. SAP Hana is such a system. The payload expected by the SAP
> Hana odata service requires plain json payload which only key value pairs.
> exmaple:
> {"EndToEndIdentification":"1000000046","Amount.InstructedAmount.Amount":"1500","Amount.InstructedAmount.Currency":"IGW","PaymentInformationIdentification":"1000000028"}
> This should not have any information about the metadata or uri in the
> payload. We are unable to get such a payload from the olingo library. It will
> be good if we can add one more parameter to the above function or create one
> more overloaded function to get the required payload.
> Regards,
> Dilip
--
This message was sent by Atlassian JIRA
(v6.2#6252)