我曾尝试使用odata服务,但在尝试获取实体时遇到错误。
字符串serviceUrl =" http://services.odata.org/(S(mvnfyllpw41mbzvkme0o0zug))/ODataOData.svc/&#34 ;;
ODataConsumer consumer = ODataConsumers.create(serviceUrl);
// list category names
for (OEntity category : consumer.getEntities("Categories").execute()) {
String categoryName = category.getProperty("Name", String.class).getValue();
System.out.println("Category name: " + categoryName);
}