Five Stars

TREST Client Local Project Connection

Hi 

I am using a TREST Client object to test a rest service in my local machine and it's timing out always.

The same URL is working fine in my browser.

http://maps.googleapis.com/maps/api/geocode/xml?address=Los+Angeles&sensor=false

 

In TREST Client URL i use is 

"http://maps.googleapis.com"

Relative Path "/maps/api/geocode/xml?address=Los+Angeles&sensor=false"

 

Any suggestion towards the same , would be great. 

 

************

Error Message :

 

Exception in component tRESTClient_1
javax.ws.rs.ProcessingException: java.net.ConnectException: ConnectException invoking http://maps.googleapis.com/maps/api/geocode/json%3Faddress=Los+Angeles&sensor=false: Connection timed out: connect
at org.apache.cxf.jaxrs.client.AbstractClient.checkClientException(AbstractClient.java:582)
at org.apache.cxf.jaxrs.client.AbstractClient.preProcessResult(AbstractClient.java:564)
at org.apache.cxf.jaxrs.client.WebClient.doResponse(WebClient.java:1144)
at org.apache.cxf.jaxrs.client.WebClient.doChainedInvocation(WebClient.java:1094)
at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:894)

1 ACCEPTED SOLUTION

Accepted Solutions
Fifteen Stars

Re: TREST Client Local Project Connection

Hmmmm, it works when I try it through Studio. I can only think you have some sort of proxy configured for your browser

Rilhia Solutions
3 REPLIES
Fifteen Stars

Re: TREST Client Local Project Connection

Just place the whole path in your URL. Don't worry about splitting it up and using the relative path option.

Rilhia Solutions
Five Stars

Re: TREST Client Local Project Connection

Thanks for you response. I had tried taking the full url too. It is still the same.
Fifteen Stars

Re: TREST Client Local Project Connection

Hmmmm, it works when I try it through Studio. I can only think you have some sort of proxy configured for your browser

Rilhia Solutions