Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Eclipse Communications Framework (ECF) » remoteservice API not using the configured proxy?
remoteservice API not using the configured proxy? [message #663976] Thu, 07 April 2011 04:17 Go to next message
Dirk Olmes is currently offline Dirk OlmesFriend
Messages: 26
Registered: July 2009
Junior Member
Hi,

I'm using the remoteservice API to integrate our tooling with a REST
service. The main reason I use ECF instead of commons-httpclient directly
is proxy support. I was hoping that ECF is picking up the proxy settings
from Eclipse's "Network Connections" preferences.

To test if the proxy is actually used I entered a wrong proxy port and
tried to access my REST service. Much to my surprise the call succeeded
and I got no exception.

Debugging around in RestClientService I come to think that the platform's
proxy config is actually ignored. What puzzles me also is the following
message upon startup:

!ENTRY org.eclipse.core.net 1 0 2011-04-06 21:09:16.614
!MESSAGE System property http.proxyHost is not set but should be www-
cache.

Does that mean that the proxy could not be setup correctly? Is
RestClientService actually supposed to use the configured proxy?

-dirk
Re: remoteservice API not using the configured proxy? [message #664001 is a reply to message #663976] Thu, 07 April 2011 06:51 Go to previous messageGo to next message
Markus Kuppe is currently offline Markus KuppeFriend
Messages: 177
Registered: July 2009
Senior Member
On 04/07/2011 06:17 AM, Dirk Olmes wrote:
> Hi,
>
> I'm using the remoteservice API to integrate our tooling with a REST
> service. The main reason I use ECF instead of commons-httpclient directly
> is proxy support. I was hoping that ECF is picking up the proxy settings
> from Eclipse's "Network Connections" preferences.
>
> To test if the proxy is actually used I entered a wrong proxy port and
> tried to access my REST service. Much to my surprise the call succeeded
> and I got no exception.
>
> Debugging around in RestClientService I come to think that the platform's
> proxy config is actually ignored. What puzzles me also is the following
> message upon startup:
>
> !ENTRY org.eclipse.core.net 1 0 2011-04-06 21:09:16.614
> !MESSAGE System property http.proxyHost is not set but should be www-
> cache.
>
> Does that mean that the proxy could not be setup correctly? Is
> RestClientService actually supposed to use the configured proxy?
>
> -dirk

Does p2 (update) use the proxy settings correctly? Try checking for
updates in the runtime and see if it connects eclipse.org through the proxy.

Markus
Re: remoteservice API not using the configured proxy? [message #671707 is a reply to message #663976] Wed, 18 May 2011 18:17 Go to previous message
Scott Lewis is currently offline Scott LewisFriend
Messages: 1038
Registered: July 2009
Senior Member
Dirk Olmes wrote on Thu, 07 April 2011 00:17
Hi,

I'm using the remoteservice API to integrate our tooling with a REST
service. The main reason I use ECF instead of commons-httpclient directly
is proxy support. I was hoping that ECF is picking up the proxy settings
from Eclipse's "Network Connections" preferences.

To test if the proxy is actually used I entered a wrong proxy port and
tried to access my REST service. Much to my surprise the call succeeded
and I got no exception.

Debugging around in RestClientService I come to think that the platform's
proxy config is actually ignored. What puzzles me also is the following
message upon startup:

!ENTRY org.eclipse.core.net 1 0 2011-04-06 21:09:16.614
!MESSAGE System property http.proxyHost is not set but should be www-
cache.

Does that mean that the proxy could not be setup correctly? Is
RestClientService actually supposed to use the configured proxy?

-dirk


The ECF filetransfer API (used by p2) *is* using the Eclipse platform proxy settings. Unfortunately the same is not yet true of the REST API. This is an enhancement (adding support for using Eclipse proxy configuration in the REST API) that has not yet been implemented. Happily, it's easy to do...e.g. essentially copying the filetransfer httpclient provider's use of the Eclipse proxy API into the REST code...but it hasn't been done. Please consider opening an enhancement request for this...and if possible helping with a contribution to implement.
Previous Topic:how create project.jar in eclipse
Next Topic:Connection persistence?
Goto Forum:
  


Current Time: Thu Apr 25 09:51:06 GMT 2024

Powered by FUDForum. Page generated in 0.03765 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top