[
https://issues.apache.org/jira/browse/OLINGO-277?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14066095#comment-14066095
]
Christian Amend edited comment on OLINGO-277 at 7/18/14 6:07 AM:
-----------------------------------------------------------------
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.
You can also use the omitJsonWrapper flag to omit the d wrapper which is only
needed when generating payloads on server side.
Se the jira task: https://issues.apache.org/jira/browse/OLINGO-310
Best Regards,
Christian
was (Author: chrisam):
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)