I would propose to create a second service client for the service that
uses the https address.
Then you can use the http client for most operations and the https one
for your one request. If you need to hide that you can
create a small java class that implements the service interface and
delegates to the correct one of the two proxies depending on the called
operation.
That should be a lot easier then making CXF do the magic.
Christian
On 23.07.2014 21:57, Oliver Becherer wrote:
hi all,
i'm just stuck with a problem using cxf :
i implemented a soap client to a webservice using cxf 2.6.1 and its working
fine... now i have the challenge of sending one single service operation
to the usual endpoint but over a proxy server that only accepts https.
so these are the base facts :
Service Endpoint : https://some-usual-soap-endpoint.com
Proxy Server : https://some-weird-https-proxy.com
Proxy Port : 7777
This is my approach :
HTTPClientPolicy policy = new HTTPClientPolicy();
policy.setProxyServer("some-weird-https-proxy.com");
policy.setProxyServerPort(7777);
Client client = ClientProxy.getClient(awspt);
HTTPConduit http = (HTTPConduit) client.getConduit();
http.setClient(policy);
so far so good, but the requests are reaching the proxy not using https, but
http and the proxy is not accepting this.
can you help me, how to configure the Proxy Server within my Client, so Request
is sent using https?
any help is highly appreciated!
kind regards
O
--
Christian Schneider
http://www.liquid-reality.de
Open Source Architect
http://www.talend.com