[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.technology.ecf] Re: Commons HttpClient VS ECF

Hi fafanoulele,

Chris Aniszczyk wrote:
Forwarding to the ECF forums.

fafanoulele wrote:
Hello,
I've started to develop an Eclipse Project. This plugin communicate with a SOA service hosted on Internet. So my question is : What the best practice for call this SOA service ? I must use Jakarta Commons HttpClient or Eclipse ECF ?


You have several options (perhaps too many, but that's another issue).

In Galileo, ECF includes version 3.1 of the Apache httpclient, so you can use that directly. The bundle name is org.apache.commons.httpclient.

Or, if you wish, you can use ECF remote services, and one of several providers (i.e. r-Osgi, ECF generic, JMS, XMPP, etc). Here's some docs for the remote services API: http://wiki.eclipse.org/Distributed_OSGi_Services_with_ECF

There is also much going on now with ECF's support for REST (currently using apache httpclient): http://wiki.eclipse.org/REST_abstraction_for_ECF


This question is linked with the
configuration of proxy. I can retrieve proxy configuration in Eclipse preferences. How manage proxy with differently solution ? (Especially for proxy auto-config)

Yes. For usage by P2 and the platform, ECF has written code for getting access to the proxy API in Eclipse, and using that information to use proxies. That code is in the source for the following two plugins:


org.eclipse.ecf.provider.filetransfer.httpclient  (httpclient)
org.eclipse.ecf.provider.filetransfer  (jre http impl)

If you wish, you can model your access to Eclipse proxy configuration info after what's in the ECF filetransfer provider code.

BUT, you should be aware that there is currently a known issue with supporting NTLMv2 with the apache httpclient provider (as the apache httpclient provider does *not* support NTLMv2 proxies). See here for more info:

http://wiki.eclipse.org/ECF_Filetransfer_Support_for_NTLMv2_Proxies
https://bugs.eclipse.org/bugs/show_bug.cgi?id=252002

Hope this helps. If you want more info about this or details, please feel free to write questions to ecf-dev at eclipse.org mailing list.

Scott