On Jul 22, 2008, at 6:55 AM, Maciej Kwiecien wrote:
K, I found out that according to
http://cwiki.apache.org/CXF20DOC/client-http-transport.html
HTTPConduit should be used.
import org.apache.cxf.endpoint.Client;
import org.apache.cxf.frontend.ClientProxy;
import org.apache.cxf.transport.http.HTTPConduit;
import org.apache.cxf.transports.http.configuration.HTTPClientPolicy;
...
URL wsdl = getClass().getResource("wsdl/greeting.wsdl");
SOAPService service = new SOAPService(wsdl, serviceName);
Greeter greeter = service.getPort(portName, Greeter.class);
// Okay, are you sick of configuration files ?
// This will show you how to configure the http conduit dynamically
Client client = ClientProxy.getClient(poltim);
HTTPConduit http = (HTTPConduit) client.getConduit();
There is only one problem what "poltim" is ? ;-)
That would be the "greeter" object. Not sure what poltim is supposed
to meen, but it should be greeter.
Dan
On Tue, Jul 22, 2008 at 12:41 PM, Maciej Kwiecien <[EMAIL PROTECTED]
>
wrote:
Hello All,
Invoking remote service in my cxf client ends up with
UnknownHostException
- please tell me how I can modify proxy setings used to make call.
I've tried already
System.setProperty("https.proxyHost", PROXY_URL);
System.setProperty("https.proxyPort", PROXY_PORT);
without lack.
Any help will be appreciated,
Maciej
---
Daniel Kulp
[EMAIL PROTECTED]
http://www.dankulp.com/blog