I'm trying to use Olingo to connect to an Odata v4 service I've tested it with the Northwind sample and the URI that gets produce works in a browser: I always get the following
error:java.lang.IllegalArgumentException:org.apache.olingo.commons.api.serialization.ODataDeserializerException:
com.fasterxml.jackson.core.JsonParseException: Expected OData Entity, found
EntitySet.
Code
ODataEntityRequest<ClientEntity> reqEntity = client.getRetrieveRequestFactory().getEntityRequest(entityURI);
ODataRetrieveResponse<ClientEntity> entity = reqEntity.execute();
ClientEntity ce = (ClientEntity)entity.getBody();
at last line i am getting error.
ClientEntity ce = (ClientEntity)entity.getBody();