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

Christian Amend resolved OLINGO-1056.
-------------------------------------
       Resolution: Fixed
         Assignee: Christian Amend
    Fix Version/s: V2 2.0.9

Hi,

you can use the EntityProvider.write... methods to transform the objects. then 
you take the input stream and transform it into a String.

If you would like to have a better API you could contribute a patch for this.

Best Regards,
Christian

> Batch requests/responses on client
> ----------------------------------
>
>                 Key: OLINGO-1056
>                 URL: https://issues.apache.org/jira/browse/OLINGO-1056
>             Project: Olingo
>          Issue Type: Question
>          Components: odata2-core
>    Affects Versions: V2 2.0.7
>            Reporter: M Carissimi
>            Assignee: Christian Amend
>             Fix For: V2 2.0.9
>
>
> Hello,
> we have implemented an OData 2 service that supports batch operations. We are 
> now writing an OData client to create a batch request and parse a batch 
> response.
> The body of the batch request needs to be provided as JSON/XML text. Is there 
> an easy way to convert objects (like ODataEntry or ODataFeed) into a JSON/XML 
> string that can be added as the body of our batch request?
> When parsing the response body, is there a way to convert the body text into 
> objects like ODataEntry or ODataFeed?
> Thanks
> Michele



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to