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