It may have just taken a really long time to get all the data.
If you add this line you will see more detail.
ODataConsumer.DUMP_REQUEST_HEADERS = true;
I made a simple example and it took a while to run.
public class StackoverflowConsumerExample extends BaseExample {
public static void main(String... args) {
ODataConsumer.DUMP_REQUEST_HEADERS = true;
Enumerable<OEntity> execute =
c.getEntities("Users").execute();
List<OEntity> toList = execute.toList();
for (OEntity oEntity : toList) {
for (OProperty<?> p : oEntity.getProperties()) {
report("%s: %s", p.getName(), p.getValue());
}
report("\n");
}
report("count: " + toList.size());
}
}
-Craig Vyvial
On Nov 1, 4:48 pm, Techboy <
p...@performit.co.uk> wrote:
> My code doesn't work:
>
> --------------------------------------------------------------------------- ---------------------------------------------------
> public static Enumerable<OEntity> getUserInfo() {
>
> ODataConsumer c = ODataConsumer.create("https://
>
odata.sqlazurelabs.com/OData.svc/v0.1/rp1uiewita/StackOverflow/");
>
> return c.getEntities("Users").execute();
> --------------------------------------------------------------------------- ---------------------------------------------------
>
> I think it is unable to access the URLhttps://
odata.sqlazurelabs.com/OData.svc/v0.1/rp1uiewita/StackOverflow/