title: How can I consume an OData4 service in Java using either Olingo or the SDL OData Framework
body: <p>I need to consume an OData4 service from Java and based on the list of frameworks on the <a href="http://www.odata.org/libraries/" rel="noreferrer">OData website</a> the two choices are <a href="https://olingo.apache.org/doc/odata4/index.html" rel="noreferrer">Olingo</a> or the <a href="https://github.com/sdl/odata" rel="noreferrer">SDL Odata Framework</a>.  My problem is that the documentation for both of these projects are focused on writing a service not consuming one.  The Olingo site links to a blog post from 2014 which is not API compatible with the current version and I couldn't find anything on the SDL github pages.</p>
  
  <p>If someone could just provide me with a simple POST / GET example with using a proper POJO object model that would be great.</p>
  
  <p>My limited understanding is that OData moves any information about the actual object model from compile time to runtime on the client.  I am happy to ignore this and code against a fixed object model because the service we are using won't change.</p>