It's all about the answers!

Ask a question

Integrating RTC with Java Application (REST)

Paulo Anjos (611) | asked Sep 14 '10, 1:51 p.m.
Hi, I'm new in RTC development and I'm trying to do an integration between RTC and a java application running in a Websphere Application Server, I saw a lot of documents explaining how to manipulate workitems using curl, but I'm using java and Apache HTTPClient, I could do a login, but when a try to do a GET request to get a Json representation of a work Item, I get only the page "loading" as a result, does anyone had already done something like that? I know it should be very easy to do, but I couldn't find nothing that can help me, I will post the part of code that I'm doing the request.


GetMethod getMethod = new GetMethod("https://localhost:9443/jazz/resource/itemOid/,rtc_cm:comments,");

getMethod.addRequestHeader(new Header("Accept","application/x-oslc-cm-change-request+json"));
try {
} catch (HttpException httpe) {
} catch (IOException ioe) {
String responseBody = getMethod.getResponseBodyAsString();

System.out.println("The page start here: ");



Be the first one to answer this question!

Register or to post your answer.