You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@olingo.apache.org by Thierry Templier <te...@yahoo.fr> on 2014/11/27 09:28:29 UTC

Update data for OData v4 services with Olingo

Hello,
I try to use Olingo to update data of an OData v4 service (JSON) but I can't find samples or API documentation to do that.
I only found out hints to get and search data:
 ODataClient client = ODataClientFactory.getV4(); String serviceRoot = (...) URI customersUri = client.newURIBuilder(serviceRoot)         .appendEntitySetSegment("Customers").build(); ODataRetrieveResponse<ODataEntitySetIterator<ODataEntitySet, ODataEntity>> response =         client.getRetrieveRequestFactory().getEntitySetIteratorRequest(customersUri).execute();
 ODataEntitySetIterator<ODataEntitySet, ODataEntity> iterator = response.getBody();
 while (iterator.hasNext()) {     ODataEntity customer = iterator.next();    (...)}
Are there some code samples, unit tests, or documentation describing that?
Thanks very much for your help.Thierry ______________________________________________
-- Take a look at my blog: http://templth.wordpress.com

Re: Update data for OData v4 services with Olingo

Posted by Thierry Templier <te...@yahoo.fr>.
Hi Michael,
Thanks for the feedback! ;-)
I added the JIRA issue regarding client documentation. See https://issues.apache.org/jira/browse/OLINGO-518.
Yes sure, it's of course ok for me for the links from the Olingo homepage!
Thierry   ______________________________________________
-- Take a look at my blog: http://templth.wordpress.com/ 

     Le Mercredi 10 décembre 2014 20h48, Mibo <mi...@apache.org> a écrit :
   

  Hi Thierry,
I just read your second blog post and see that you already have written a third one about „Updating data links“ (http://templth.wordpress.com/2014/12/08/updating-data-links-of-odata-v4-services-with-olingo/).Really good work and it seems you also have found a bug within Olingo  ;o)
Nevertheless it would be nice if you could create an JIRA issue (e.g. „Enhance Olingo client documentation“) and attach the markdown sources of your blog posts there.Because I’am not sure if we find the time to integrate the tutorial into the official documentation before end of the year I really like to link from the Olingo homepage to your blog posts.If this is Ok for you.In addition I think your blog post there are more than worth to be mentioned via Olingo Twitter account  ;o) 
Kind regards,Michael


On Dec 5, 2014, at 10:06 AM, Thierry Templier <te...@yahoo.fr> wrote:
Hello all,
I wrote another blog post regarding updating data with the Olingo client. It will remain a last post to write to describe how to manage entity navigation links. It can be reached at this address: http://templth.wordpress.com/2014/12/05/manipulating-data-of-odata-v4-services-with-olingo/.
If you need the markdown sources of posts for the Olingo documentation, feel free to ask me!
Thierry ______________________________________________
-- Take a look at my blog: http://templth.wordpress.com/

Le Jeudi 4 décembre 2014 7h45, "Bolz, Michael" <mi...@sap.com> a écrit :


Hello Thierry,
thanks for writing of the blog post and contribution to Olingo.
Kind regards,Michael

On 04 Dec 2014, at 07:10, Thierry Templier <te...@yahoo.fr> wrote:


| Hello Michael,Yes, sure!! Feel free to use the content you want from my blog for the Olingo documentation... I'd pleased to contribute to the project in this way.Thierry
 |


From:mibo <mi...@apache.org>; 
To:Thierry Templier <te...@yahoo.fr>; 
Cc:<us...@olingo.apache.org>; 
Subject:Re: Update data for OData v4 services with Olingo 
Sent:Wed, Dec 3, 2014 6:52:14 PM 


| Hello Thierry,

looks really good was you have written.
Do you think we can use this as a base for a client documentation / tutorial on Olingo homepage?

Kind regards,
Michael

> Am 03.12.2014 um 15:25 schrieb Thierry Templier <te...@yahoo.fr>:
> 
> Hello Francesco,
> 
> Based on your links, I took a little time to describe how to use the Olingo client to get data from an OData v4 service. See this link: http://templth.wordpress.com/2014/12/03/accessing-odata-v4-service-with-olingo/. Feel free to make me your comments!
> The part to update data of services will come soon ;-)
> 
> Hope that it can be useful.
> Thierry
>  
>  
> ______________________________________________
> -- Take a look at my blog: http://templth.wordpress.com/
> 
> 
> Le Jeudi 27 novembre 2014 10h57, Thierry Templier <te...@yahoo.fr> a écrit :
> 
> 
> Thanks very much, Francesco! This is exactly what I looked for!
> 
> Thierry
>  
> ______________________________________________
> -- Take a look at my blog: http://templth.wordpress.com/
> 
> 
> Le Jeudi 27 novembre 2014 9h33, Francesco Chicchiriccò <il...@apache.org> a écrit :
> 
> 
> On 27/11/2014 09:28, Thierry Templier wrote:
>> Hello,
>> 
>> I try to use Olingo to update data of an OData v4 service (JSON) but I can't find samples or API documentation to do that.
>> 
>> I only found out hints to get and search data:
>> 
>>  ODataClient client = ODataClientFactory.getV4();
>>  String serviceRoot = (...)
>>  URI customersUri = client.newURIBuilder(serviceRoot)
>>          .appendEntitySetSegment("Customers").build();
>>  ODataRetrieveResponse<ODataEntitySetIterator<ODataEntitySet, ODataEntity>> response =
>>          client.getRetrieveRequestFactory().getEntitySetIteratorRequest(customersUri).execute();
>> 
>>  ODataEntitySetIterator<ODataEntitySet, ODataEntity> iterator = response.getBody();
>> 
>>  while (iterator.hasNext()) {
>>      ODataEntity customer = iterator.next();
>>    (...)
>> }
>> 
>> Are there some code samples, unit tests, or documentation describing that?
> 
> Hi,
> sorry, no documentation available yet; see test cases for plain client [1] and proxy [2].
> 
> HTH
> Regards.
> 
> [1] https://git-wip-us.apache.org/repos/asf?p=olingo-odata4.git;a=tree;f=fit/src/test/java/org/apache/olingo/fit/v4
> [2] https://git-wip-us.apache.org/repos/asf?p=olingo-odata4.git;a=tree;f=fit/src/test/java/org/apache/olingo/fit/proxy/v4
> -- 
> Francesco Chicchiriccò
> 
> Tirasa - Open Source Excellence
> 
> http://www.tirasa.net/
> 
> 
> Involved at The Apache Software Foundation:
> member, Syncope PMC chair, Cocoon PMC, Olingo PMC
> 
> http://people.apache.org/~ilgrosso/
> 
> 
> 
> 
 |






   

Re: Update data for OData v4 services with Olingo

Posted by Mibo <mi...@apache.org>.
  Hi Thierry,


I just read your second blog post and see that you already have written a third one about „Updating data links“ (http://templth.wordpress.com/2014/12/08/updating-data-links-of-odata-v4-services-with-olingo/).
Really good work and it seems you also have found a bug within Olingo  ;o)


Nevertheless it would be nice if you could create an JIRA issue (e.g. „Enhance Olingo client documentation“) and attach the markdown sources of your blog posts there.
Because I’am not sure if we find the time to integrate the tutorial into the official documentation before end of the year I really like to link from the Olingo homepage to your blog posts.
If this is Ok for you.
In addition I think your blog post there are more than worth to be mentioned via Olingo Twitter account  ;o) 


Kind regards,
Michael





> On Dec 5, 2014, at 10:06 AM, Thierry Templier <te...@yahoo.fr> wrote:
> 
> 
> Hello all,
> 
> 
> I wrote another blog post regarding updating data with the Olingo client. It will remain a last post to write to describe how to manage entity navigation links. It can be reached at this address: http://templth.wordpress.com/2014/12/05/manipulating-data-of-odata-v4-services-with-olingo/
> .
> 
> 
> If you need the markdown sources of posts for the Olingo documentation, feel free to ask me!
> 
> 
> Thierry
> 
>  
> ______________________________________________
> -- Take a look at my blog: http://templth.wordpress.com/
> 
> 
> 
> 
> Le Jeudi 4 décembre 2014 7h45, "Bolz, Michael" <mi...@sap.com> a écrit :
> 
> 
> 
> Hello Thierry,
> 
> thanks for writing of the blog post and contribution to Olingo.
> 
> 
> Kind regards,
> Michael
> 
>> On 04 Dec 2014, at 07:10, Thierry Templier <templth@yahoo.fr
>>> wrote:
>> 
>> 
>> 
> 
> 
> 
> Hello Michael,
> Yes, sure!! Feel free to use the content you want from my blog for the Olingo documentation... I'd pleased to contribute to the project in this way.
> Thierry
> 
> 
> 
> 
> 
> 
> 
> From:mibo <mibo@apache.org
>>; 
> To:Thierry Templier <templth@yahoo.fr
>>; 
> Cc:<user@olingo.apache.org
>>; 
> Subject:Re: Update data for OData v4 services with Olingo 
> Sent:Wed, Dec 3, 2014 6:52:14 PM 
> 
> 
> Hello Thierry,
> 
> looks really good was you have written.
> Do you think we can use this as a base for a client documentation / tutorial on Olingo homepage?
> 
> Kind regards,
> Michael
> 
>> Am 03.12.2014 um 15:25 schrieb Thierry Templier <templth@yahoo.fr
>>:
>> 
>> Hello Francesco,
>> 
>> Based on your links, I took a little time to describe how to use the Olingo client to get data from an OData v4 service. See this link: http://templth.wordpress.com/2014/12/03/accessing-odata-v4-service-with-olingo/. 
> Feel free to make me your comments!
>> The part to update data of services will come soon ;-)
>> 
>> Hope that it can be useful.
>> Thierry
>>  
>>  
>> ______________________________________________
>> -- Take a look at my blog: http://templth.wordpress.com/
> 
>> 
>> 
>> Le Jeudi 27 novembre 2014 10h57, Thierry Templier <templth@yahoo.fr
>> a écrit :
>> 
>> 
>> Thanks very much, Francesco! This is exactly what I looked for!
>> 
>> Thierry
>>  
>> ______________________________________________
>> -- Take a look at my blog: http://templth.wordpress.com/
> 
>> 
>> 
>> Le Jeudi 27 novembre 2014 9h33, Francesco Chicchiriccò <ilgrosso@apache.org
>> a écrit :
>> 
>> 
>> On 27/11/2014 09:28, Thierry Templier wrote:
>>> Hello,
>>> 
>>> I try to use Olingo to update data of an OData v4 service (JSON) but I can't find samples or API documentation to do that.
>>> 
>>> I only found out hints to get and search data:
>>> 
>>>  ODataClient client = ODataClientFactory.getV4();
>>>  String serviceRoot = (...)
>>>  URI customersUri = client.newURIBuilder(serviceRoot)
>>>          .appendEntitySetSegment("Customers").build();
>>>  ODataRetrieveResponse<ODataEntitySetIterator<ODataEntitySet, ODataEntity>> response =
>>>          client.getRetrieveRequestFactory().getEntitySetIteratorRequest(customersUri).execute();
>>> 
>>>  ODataEntitySetIterator<ODataEntitySet, ODataEntity> iterator = response.getBody();
>>> 
>>>  while (iterator.hasNext()) {
>>>      ODataEntity customer = iterator.next();
>>>    (...)
>>> }
>>> 
>>> Are there some code samples, unit tests, or documentation describing that?
>> 
>> Hi,
>> sorry, no documentation available yet; see test cases for plain client [1] and proxy [2].
>> 
>> HTH
>> Regards.
>> 
>> [1] https://git-wip-us.apache.org/repos/asf?p=olingo-odata4.git;a=tree;f=fit/src/test/java/org/apache/olingo/fit/v4
> 
>> [2] https://git-wip-us.apache.org/repos/asf?p=olingo-odata4.git;a=tree;f=fit/src/test/java/org/apache/olingo/fit/proxy/v4
> 
>> -- 
>> Francesco Chicchiriccò
>> 
>> Tirasa - Open Source Excellence
>> 
>> http://www.tirasa.net/
> 
>> 
>> 
>> Involved at The Apache Software Foundation:
>> member, Syncope PMC chair, Cocoon PMC, Olingo PMC
>> 
>> http://people.apache.org/~ilgrosso/
> 
>> 
>> 
>> 
>> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 

Re: Update data for OData v4 services with Olingo

Posted by Thierry Templier <te...@yahoo.fr>.
Hello all,
I wrote another blog post regarding updating data with the Olingo client. It will remain a last post to write to describe how to manage entity navigation links. It can be reached at this address: http://templth.wordpress.com/2014/12/05/manipulating-data-of-odata-v4-services-with-olingo/.
If you need the markdown sources of posts for the Olingo documentation, feel free to ask me!
Thierry ______________________________________________
-- Take a look at my blog: http://templth.wordpress.com/ 

     Le Jeudi 4 décembre 2014 7h45, "Bolz, Michael" <mi...@sap.com> a écrit :
   

 Hello Thierry,
thanks for writing of the blog post and contribution to Olingo.
Kind regards,Michael

On 04 Dec 2014, at 07:10, Thierry Templier <te...@yahoo.fr> wrote:


| Hello Michael,Yes, sure!! Feel free to use the content you want from my blog for the Olingo documentation... I'd pleased to contribute to the project in this way.Thierry
 |

   
     From:  mibo <mi...@apache.org>; 
  To:  Thierry Templier <te...@yahoo.fr>; 
  Cc:  <us...@olingo.apache.org>; 
  Subject:  Re: Update data for OData v4 services with Olingo 
  Sent:  Wed, Dec 3, 2014 6:52:14 PM 
  
 
| Hello Thierry,

looks really good was you have written.
Do you think we can use this as a base for a client documentation / tutorial on Olingo homepage?

Kind regards,
Michael

> Am 03.12.2014 um 15:25 schrieb Thierry Templier <te...@yahoo.fr>:
> 
> Hello Francesco,
> 
> Based on your links, I took a little time to describe how to use the Olingo client to get data from an OData v4 service. See this link: http://templth.wordpress.com/2014/12/03/accessing-odata-v4-service-with-olingo/. Feel free to make me your comments!
> The part to update data of services will come soon ;-)
> 
> Hope that it can be useful.
> Thierry
>  
>  
> ______________________________________________
> -- Take a look at my blog: http://templth.wordpress.com/
> 
> 
> Le Jeudi 27 novembre 2014 10h57, Thierry Templier <te...@yahoo.fr> a écrit :
> 
> 
> Thanks very much, Francesco! This is exactly what I looked for!
> 
> Thierry
>  
> ______________________________________________
> -- Take a look at my blog: http://templth.wordpress.com/
> 
> 
> Le Jeudi 27 novembre 2014 9h33, Francesco Chicchiriccò <il...@apache.org> a écrit :
> 
> 
> On 27/11/2014 09:28, Thierry Templier wrote:
>> Hello,
>> 
>> I try to use Olingo to update data of an OData v4 service (JSON) but I can't find samples or API documentation to do that.
>> 
>> I only found out hints to get and search data:
>> 
>>  ODataClient client = ODataClientFactory.getV4();
>>  String serviceRoot = (...)
>>  URI customersUri = client.newURIBuilder(serviceRoot)
>>          .appendEntitySetSegment("Customers").build();
>>  ODataRetrieveResponse<ODataEntitySetIterator<ODataEntitySet, ODataEntity>> response =
>>          client.getRetrieveRequestFactory().getEntitySetIteratorRequest(customersUri).execute();
>> 
>>  ODataEntitySetIterator<ODataEntitySet, ODataEntity> iterator = response.getBody();
>> 
>>  while (iterator.hasNext()) {
>>      ODataEntity customer = iterator.next();
>>    (...)
>> }
>> 
>> Are there some code samples, unit tests, or documentation describing that?
> 
> Hi,
> sorry, no documentation available yet; see test cases for plain client [1] and proxy [2].
> 
> HTH
> Regards.
> 
> [1] https://git-wip-us.apache.org/repos/asf?p=olingo-odata4.git;a=tree;f=fit/src/test/java/org/apache/olingo/fit/v4
> [2] https://git-wip-us.apache.org/repos/asf?p=olingo-odata4.git;a=tree;f=fit/src/test/java/org/apache/olingo/fit/proxy/v4
> -- 
> Francesco Chicchiriccò
> 
> Tirasa - Open Source Excellence
> 
> http://www.tirasa.net/
> 
> 
> Involved at The Apache Software Foundation:
> member, Syncope PMC chair, Cocoon PMC, Olingo PMC
> 
> http://people.apache.org/~ilgrosso/
> 
> 
> 
> 
 |

   


   

Re: Update data for OData v4 services with Olingo

Posted by "Bolz, Michael" <mi...@sap.com>.
Hello Thierry,

thanks for writing of the blog post and contribution to Olingo.

Kind regards,
Michael

> On 04 Dec 2014, at 07:10, Thierry Templier <te...@yahoo.fr> wrote:
> 
> Hello Michael,
> 
> Yes, sure!! Feel free to use the content you want from my blog for the Olingo documentation... I'd pleased to contribute to the project in this way.
> 
> Thierry
> 
> From: mibo <mi...@apache.org>; 
> To: Thierry Templier <te...@yahoo.fr>; 
> Cc: <us...@olingo.apache.org>; 
> Subject: Re: Update data for OData v4 services with Olingo 
> Sent: Wed, Dec 3, 2014 6:52:14 PM 
> 
> Hello Thierry,
> 
> looks really good was you have written.
> Do you think we can use this as a base for a client documentation / tutorial on Olingo homepage?
> 
> Kind regards,
> Michael
> 
> > Am 03.12.2014 um 15:25 schrieb Thierry Templier <templth@yahoo.fr <javascript:return>>:
> > 
> > Hello Francesco,
> > 
> > Based on your links, I took a little time to describe how to use the Olingo client to get data from an OData v4 service. See this link: http://templth.wordpress.com/2014/12/03/accessing-odata-v4-service-with-olingo/.  <http://templth.wordpress.com/2014/12/03/accessing-odata-v4-service-with-olingo/>Feel free to make me your comments!
> > The part to update data of services will come soon ;-)
> > 
> > Hope that it can be useful.
> > Thierry
> >  
> >  
> > ______________________________________________
> > -- Take a look at my blog: http://templth.wordpress.com/ <http://templth.wordpress.com/>
> > 
> > 
> > Le Jeudi 27 novembre 2014 10h57, Thierry Templier <templth@yahoo.fr <javascript:return>> a écrit :
> > 
> > 
> > Thanks very much, Francesco! This is exactly what I looked for!
> > 
> > Thierry
> >  
> > ______________________________________________
> > -- Take a look at my blog: http://templth.wordpress.com/ <http://templth.wordpress.com/>
> > 
> > 
> > Le Jeudi 27 novembre 2014 9h33, Francesco Chicchiriccò <ilgrosso@apache.org <javascript:return>> a écrit :
> > 
> > 
> > On 27/11/2014 09:28, Thierry Templier wrote:
> >> Hello,
> >> 
> >> I try to use Olingo to update data of an OData v4 service (JSON) but I can't find samples or API documentation to do that.
> >> 
> >> I only found out hints to get and search data:
> >> 
> >>  ODataClient client = ODataClientFactory.getV4();
> >>  String serviceRoot = (...)
> >>  URI customersUri = client.newURIBuilder(serviceRoot)
> >>          .appendEntitySetSegment("Customers").build();
> >>  ODataRetrieveResponse<ODataEntitySetIterator<ODataEntitySet, ODataEntity>> response =
> >>          client.getRetrieveRequestFactory().getEntitySetIteratorRequest(customersUri).execute();
> >> 
> >>  ODataEntitySetIterator<ODataEntitySet, ODataEntity> iterator = response.getBody();
> >> 
> >>  while (iterator.hasNext()) {
> >>      ODataEntity customer = iterator.next();
> >>    (...)
> >> }
> >> 
> >> Are there some code samples, unit tests, or documentation describing that?
> > 
> > Hi,
> > sorry, no documentation available yet; see test cases for plain client [1] and proxy [2].
> > 
> > HTH
> > Regards.
> > 
> > [1] https://git-wip-us.apache.org/repos/asf?p=olingo-odata4.git;a=tree;f=fit/src/test/java/org/apache/olingo/fit/v4 <https://git-wip-us.apache.org/repos/asf?p=olingo-odata4.git;a=tree;f=fit/src/test/java/org/apache/olingo/fit/v4>
> > [2] https://git-wip-us.apache.org/repos/asf?p=olingo-odata4.git;a=tree;f=fit/src/test/java/org/apache/olingo/fit/proxy/v4 <https://git-wip-us.apache.org/repos/asf?p=olingo-odata4.git;a=tree;f=fit/src/test/java/org/apache/olingo/fit/proxy/v4>
> > -- 
> > Francesco Chicchiriccò
> > 
> > Tirasa - Open Source Excellence
> > 
> > http://www.tirasa.net/ <http://www.tirasa.net/>
> > 
> > 
> > Involved at The Apache Software Foundation:
> > member, Syncope PMC chair, Cocoon PMC, Olingo PMC
> > 
> > http://people.apache.org/~ilgrosso/ <http://people.apache.org/~ilgrosso/>
> > 
> > 
> > 
> > 


Re : Re: Update data for OData v4 services with Olingo

Posted by Thierry Templier <te...@yahoo.fr>.
Hello Michael,

Yes,  sure!! Feel free to use the content you want from my blog for the Olingo documentation... I'd pleased to contribute to the project in this way.

Thierry


Re: Update data for OData v4 services with Olingo

Posted by mibo <mi...@apache.org>.
Hello Thierry,

looks really good was you have written.
Do you think we can use this as a base for a client documentation / tutorial on Olingo homepage?

Kind regards,
Michael

> Am 03.12.2014 um 15:25 schrieb Thierry Templier <te...@yahoo.fr>:
> 
> Hello Francesco,
> 
> Based on your links, I took a little time to describe how to use the Olingo client to get data from an OData v4 service. See this link: http://templth.wordpress.com/2014/12/03/accessing-odata-v4-service-with-olingo/. Feel free to make me your comments!
> The part to update data of services will come soon ;-)
> 
> Hope that it can be useful.
> Thierry
>  
>  
> ______________________________________________
> -- Take a look at my blog: http://templth.wordpress.com/
> 
> 
> Le Jeudi 27 novembre 2014 10h57, Thierry Templier <te...@yahoo.fr> a écrit :
> 
> 
> Thanks very much, Francesco! This is exactly what I looked for!
> 
> Thierry
>  
> ______________________________________________
> -- Take a look at my blog: http://templth.wordpress.com/
> 
> 
> Le Jeudi 27 novembre 2014 9h33, Francesco Chicchiriccò <il...@apache.org> a écrit :
> 
> 
> On 27/11/2014 09:28, Thierry Templier wrote:
>> Hello,
>> 
>> I try to use Olingo to update data of an OData v4 service (JSON) but I can't find samples or API documentation to do that.
>> 
>> I only found out hints to get and search data:
>> 
>>  ODataClient client = ODataClientFactory.getV4();
>>  String serviceRoot = (...)
>>  URI customersUri = client.newURIBuilder(serviceRoot)
>>          .appendEntitySetSegment("Customers").build();
>>  ODataRetrieveResponse<ODataEntitySetIterator<ODataEntitySet, ODataEntity>> response =
>>          client.getRetrieveRequestFactory().getEntitySetIteratorRequest(customersUri).execute();
>> 
>>  ODataEntitySetIterator<ODataEntitySet, ODataEntity> iterator = response.getBody();
>> 
>>  while (iterator.hasNext()) {
>>      ODataEntity customer = iterator.next();
>>     (...)
>> }
>> 
>> Are there some code samples, unit tests, or documentation describing that?
> 
> Hi,
> sorry, no documentation available yet; see test cases for plain client [1] and proxy [2].
> 
> HTH
> Regards.
> 
> [1] https://git-wip-us.apache.org/repos/asf?p=olingo-odata4.git;a=tree;f=fit/src/test/java/org/apache/olingo/fit/v4
> [2] https://git-wip-us.apache.org/repos/asf?p=olingo-odata4.git;a=tree;f=fit/src/test/java/org/apache/olingo/fit/proxy/v4
> -- 
> Francesco Chicchiriccò
> 
> Tirasa - Open Source Excellence
> 
> http://www.tirasa.net/
> 
> 
> Involved at The Apache Software Foundation:
> member, Syncope PMC chair, Cocoon PMC, Olingo PMC
> 
> http://people.apache.org/~ilgrosso/
> 
> 
> 
> 


Re: Update data for OData v4 services with Olingo

Posted by Francesco Chicchiriccò <il...@apache.org>.
On 03/12/2014 15:25, Thierry Templier wrote:
> Hello Francesco,
>
> Based on your links, I took a little time to describe how to use the 
> Olingo client to get data from an OData v4 service. See this link: 
> http://templth.wordpress.com/2014/12/03/accessing-odata-v4-service-with-olingo/. 
> Feel free to make me your comments!
> The part to update data of services will come soon ;-)

Cool stuff! Please keep us updated.

Regards.

> Le Jeudi 27 novembre 2014 10h57, Thierry Templier <te...@yahoo.fr> a 
> écrit :
>
>
> Thanks very much, Francesco! This is exactly what I looked for!
>
> Thierry
> ______________________________________________
> -- Take a look at my blog: http://templth.wordpress.com/
>
>
> Le Jeudi 27 novembre 2014 9h33, Francesco Chicchiriccò 
> <il...@apache.org> a écrit :
>
>
> On 27/11/2014 09:28, Thierry Templier wrote:
>> Hello,
>>
>> I try to use Olingo to update data of an OData v4 service (JSON) but 
>> I can't find samples or API documentation to do that.
>>
>> I only found out hints to get and search data:
>>
>> ODataClient client = ODataClientFactory.getV4();
>> String serviceRoot = (...)
>> URI customersUri = client.newURIBuilder(serviceRoot)
>>  .appendEntitySetSegment("Customers").build();
>> ODataRetrieveResponse<ODataEntitySetIterator<ODataEntitySet, 
>> ODataEntity>> response =
>>  client.getRetrieveRequestFactory().getEntitySetIteratorRequest(customersUri).execute();
>>
>> ODataEntitySetIterator<ODataEntitySet, ODataEntity> iterator = 
>> response.getBody();
>>
>> while (iterator.hasNext()) {
>>    ODataEntity customer = iterator.next();
>>     (...)
>> }
>>
>> Are there some code samples, unit tests, or documentation describing 
>> that?
>
> Hi,
> sorry, no documentation available yet; see test cases for plain client 
> [1] and proxy [2].
>
> HTH
> Regards.
>
> [1] 
> https://git-wip-us.apache.org/repos/asf?p=olingo-odata4.git;a=tree;f=fit/src/test/java/org/apache/olingo/fit/v4
> [2] 
> https://git-wip-us.apache.org/repos/asf?p=olingo-odata4.git;a=tree;f=fit/src/test/java/org/apache/olingo/fit/proxy/v4

-- 
Francesco Chicchiriccò

Tirasa - Open Source Excellence
http://www.tirasa.net/

Involved at The Apache Software Foundation:
member, Syncope PMC chair, Cocoon PMC, Olingo PMC
http://people.apache.org/~ilgrosso/


Re: Update data for OData v4 services with Olingo

Posted by Thierry Templier <te...@yahoo.fr>.
Hello Francesco,
Based on your links, I took a little time to describe how to use the Olingo client to get data from an OData v4 service. See this link: http://templth.wordpress.com/2014/12/03/accessing-odata-v4-service-with-olingo/. Feel free to make me your comments!The part to update data of services will come soon ;-)
Hope that it can be useful.Thierry   ______________________________________________
-- Take a look at my blog: http://templth.wordpress.com/ 

     Le Jeudi 27 novembre 2014 10h57, Thierry Templier <te...@yahoo.fr> a écrit :
   

 Thanks very much, Francesco! This is exactly what I looked for!
Thierry ______________________________________________
-- Take a look at my blog: http://templth.wordpress.com/ 

     Le Jeudi 27 novembre 2014 9h33, Francesco Chicchiriccò <il...@apache.org> a écrit :
   

  On 27/11/2014 09:28, Thierry Templier wrote:
  
  Hello, 
  I try to use Olingo to update data of an OData v4 service (JSON) but I can't find samples or API documentation to do that. 
  I only found out hints to get and search data: 
   ODataClient client = ODataClientFactory.getV4();  String serviceRoot = (...)  URI customersUri = client.newURIBuilder(serviceRoot)          .appendEntitySetSegment("Customers").build();  ODataRetrieveResponse<ODataEntitySetIterator<ODataEntitySet, ODataEntity>> response =         client.getRetrieveRequestFactory().getEntitySetIteratorRequest(customersUri).execute(); 
    ODataEntitySetIterator<ODataEntitySet, ODataEntity> iterator = response.getBody(); 
   while (iterator.hasNext()) {      ODataEntity customer = iterator.next();     (...) }  
  Are there some code samples, unit tests, or documentation describing that?  
 
 Hi,
 sorry, no documentation available yet; see test cases for plain client [1] and proxy [2].
 
 HTH
 Regards.
 
 [1]https://git-wip-us.apache.org/repos/asf?p=olingo-odata4.git;a=tree;f=fit/src/test/java/org/apache/olingo/fit/v4
 [2]https://git-wip-us.apache.org/repos/asf?p=olingo-odata4.git;a=tree;f=fit/src/test/java/org/apache/olingo/fit/proxy/v4
 -- 
Francesco Chicchiriccò

Tirasa - Open Source Excellence
http://www.tirasa.net/

Involved at The Apache Software Foundation:
member, Syncope PMC chair, Cocoon PMC, Olingo PMC
http://people.apache.org/~ilgrosso/ 

    

   

Re: Update data for OData v4 services with Olingo

Posted by Thierry Templier <te...@yahoo.fr>.
Thanks very much, Francesco! This is exactly what I looked for!
Thierry ______________________________________________
-- Take a look at my blog: http://templth.wordpress.com/ 

     Le Jeudi 27 novembre 2014 9h33, Francesco Chicchiriccò <il...@apache.org> a écrit :
   

  On 27/11/2014 09:28, Thierry Templier wrote:
  
  Hello, 
  I try to use Olingo to update data of an OData v4 service (JSON) but I can't find samples or API documentation to do that. 
  I only found out hints to get and search data: 
   ODataClient client = ODataClientFactory.getV4();  String serviceRoot = (...)  URI customersUri = client.newURIBuilder(serviceRoot)          .appendEntitySetSegment("Customers").build();  ODataRetrieveResponse<ODataEntitySetIterator<ODataEntitySet, ODataEntity>> response =         client.getRetrieveRequestFactory().getEntitySetIteratorRequest(customersUri).execute(); 
    ODataEntitySetIterator<ODataEntitySet, ODataEntity> iterator = response.getBody(); 
   while (iterator.hasNext()) {      ODataEntity customer = iterator.next();     (...) }  
  Are there some code samples, unit tests, or documentation describing that?  
 
 Hi,
 sorry, no documentation available yet; see test cases for plain client [1] and proxy [2].
 
 HTH
 Regards.
 
 [1]https://git-wip-us.apache.org/repos/asf?p=olingo-odata4.git;a=tree;f=fit/src/test/java/org/apache/olingo/fit/v4
 [2]https://git-wip-us.apache.org/repos/asf?p=olingo-odata4.git;a=tree;f=fit/src/test/java/org/apache/olingo/fit/proxy/v4
 -- 
Francesco Chicchiriccò

Tirasa - Open Source Excellence
http://www.tirasa.net/

Involved at The Apache Software Foundation:
member, Syncope PMC chair, Cocoon PMC, Olingo PMC
http://people.apache.org/~ilgrosso/ 

   

Re: Update data for OData v4 services with Olingo

Posted by Francesco Chicchiriccò <il...@apache.org>.
On 27/11/2014 09:28, Thierry Templier wrote:
> Hello,
>
> I try to use Olingo to update data of an OData v4 service (JSON) but I 
> can't find samples or API documentation to do that.
>
> I only found out hints to get and search data:
>
> ODataClient client = ODataClientFactory.getV4();
> String serviceRoot = (...)
> URI customersUri = client.newURIBuilder(serviceRoot)
>    .appendEntitySetSegment("Customers").build();
> ODataRetrieveResponse<ODataEntitySetIterator<ODataEntitySet, 
> ODataEntity>> response =
>  client.getRetrieveRequestFactory().getEntitySetIteratorRequest(customersUri).execute();
>
> ODataEntitySetIterator<ODataEntitySet, ODataEntity> iterator = 
> response.getBody();
>
> while (iterator.hasNext()) {
>    ODataEntity customer = iterator.next();
>   (...)
> }
>
> Are there some code samples, unit tests, or documentation describing that?

Hi,
sorry, no documentation available yet; see test cases for plain client 
[1] and proxy [2].

HTH
Regards.

[1] 
https://git-wip-us.apache.org/repos/asf?p=olingo-odata4.git;a=tree;f=fit/src/test/java/org/apache/olingo/fit/v4
[2] 
https://git-wip-us.apache.org/repos/asf?p=olingo-odata4.git;a=tree;f=fit/src/test/java/org/apache/olingo/fit/proxy/v4

-- 
Francesco Chicchiriccò

Tirasa - Open Source Excellence
http://www.tirasa.net/

Involved at The Apache Software Foundation:
member, Syncope PMC chair, Cocoon PMC, Olingo PMC
http://people.apache.org/~ilgrosso/