I use getEntities for getting information from my WCF Data Service:
ODataConsumer.Builder builder = ODataConsumers.newBuilder("http://myIP:1990/Service/DocService.svc");
builder.setFormatType(FormatType.ATOM);
builder.setClientBehaviors(new BasicAuthenticationBehavior("admin", "21232f297a57a5a743894a0e4a801fc3"));
ODataConsumer consumer = builder.build();
Enumerable<OEntity> qList = consumer.getEntities("gr_shop").execute();
And I see java.lang.NullPointerException. StackTrace:
->org.odata4j.consumer.ConsumerQueryEntitiesRequest.doRequest(ConsumerQueryEntit
iesRequest.java:64)
->org.odata4j.consumer.ConsumerQueryEntitiesRequest.getEntries(ConsumerQueryEnti
tiesRequest.java:50)
->org.odata4j.consumer.ConsumerQueryEntitiesRequest.execute(ConsumerQueryEntitie
sRequest.java:40)
....
What version of the product are you using? On what operating system?
Windows 8.1, odata4j 0.7
I attached response xml-file, that service has given to me.
Original issue reported on code.google.com by barbany...@gmail.com on 27 Feb 2014 at 8:52
Original issue reported on code.google.com by
barbany...@gmail.com
on 27 Feb 2014 at 8:52Attachments: