Вот пример кода.
Код: Выделить всё
InputStream content = execute(serviceUri , APPLICATION_XML, HTTP_METHOD_GET);
edm = EntityProvider.readMetadata(content, false);
System.out.println("Read default EntityContainer: " + edm.getDefaultEntityContainer().getName());
Код: Выделить всё
the return value of "org.apache.olingo.odata2.api.edm.Edm.getDefaultEntityContainer()" is null
Подробнее здесь: https://stackoverflow.com/questions/790 ... -getdefaul
Мобильная версия