Dilip Patidar created OLINGO-277:
------------------------------------
Summary: 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
Fix For: V2 1.2.0
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)