hi Forian,
thanks for your mail.
I tried to implement the logic provided in the link of Olingo, but getting a huge amounts of errors may be due the reason that there were not enough/correct JAR files.
well I tried with another logic as under:
public class RSClient {
public static void main(String[] args) {
Client c = Client.create(new DefaultClientConfig());
WebResource res = c.resource(buildURI());
String result = res.accept(MediaType.TEXT_PLAIN);
System.out.println("City"+result);
}
private static URI buildURI(){
}
}
I imported all the necessary JAR files relating to JERSEY -> which is need for calling Webservice of ODATA from a Java environment -> Java Perspective in HANA studio, but getting the following error as:
"the method accept(MediaType[]) in the type WebResource is not applicable for the arguments(String)" but for the MediaType .TEXT_HTML/TEXT_PLAIN/TEXT_XML have a return type as STRING...
even though the result is defined as STRING and MediaType.TEXT_PLAIN is also a STRING, why this error is not getting removed?
please provide inputs on the above point to proceed further.
Regards,
Vishnu