I am trying to use Apache Wink to get Service Document from an IBM host but I always get error 403 Forbidden. Here is my code :
import org.apache.wink.client.Resource;
import org.apache.wink.client.RestClient;
public class CommunityEvents {
private String uri = "https://w3-connections.ibm.com/profiles/atom/search.do?name=Nam,+Vu+Hoai";
public CommunityEvents() {
RestClient restClient = new RestClient();
Resource resource = restClient.resource(uri);
System.out.println(resource.get().getMessage());
}
public static void main(String[] args) {
new CommunityEvents();
}
}
The link is working fine when I put it into browser address. I have tried with other https and they worked.
Can someone correct my code or tell me what I missed ? what I need to do to access the link above ?
Thank you so much !