Hi
We are using the Restlest version 1.0.10(Stable) version. We need to use a 
HttpClient connector to connect to a web service through a firewall. How can 
we specify the proxy details(host & port) for the HttpClient connector?
We have tried setting the java system properties but it does'nt  work.
The following is the piece of code that makes the call but gives a 'connection 
refused' error :

Client client = new Client(Protocol.HTTP);
Response response = client.get(uri);
if (response.getStatus().isSuccess()) {
   client.getLogger().log(Level.INFO, "client: four!");
   // Output the response entity on the JVM console
   response.getEntity().write(System.out);
   System.out.println("client: success!");
} else {
   System.out.println(response.getStatus().getDescription());
   //fail("client: failure!");
}
DomRepresentation document = response.getEntityAsDom();

Thanks
Thara S

Reply via email to