java - CXF client not use Proxy server in a SSL request to retrieve the WSDL -


We have a CXF (2.7.x) client in Java 1.6.0_45 application (see code below)

CXF client makes a soap WS call through a proxy server.
Despite all our efforts, the CXF client directly makes some requests bypassing the proxy

The only solution for this moment is to force the proxy at the JVM option.
But this solution is not acceptable.

Is there a Punjab in our code?
I have not found any clue on internet or CXF Jira.

  // Only work when I define Proxy on Jvm / * System.setProperty ("http.proxyHost", "87.65.43.21"); System.setProperty ("http.proxy port", "808"); System.setProperty ("https.proxyHost", "87.65.43.21"); System.setProperty ("https.proxyPort", "808"); * / // Start ws url wsdlLocation = New URL ("https://12.34.56.78:8443/mockHelloWorldSoapBinding?WSDL"); QN Name qName = New QN ("http://my.webservice.com", "HelloWaldService"); HelloWaldService HelloWorldService = new HelloWaldService (wsdl location, qName); HelloWald Port = Hello World Service. HTTPConduit httpConduit = (HTTPConduit) ClientProxy.getClient (port) .getConduit (); // Add proxy parameter HTTPClientPolicy policy = new HTTPClientPolicy (); Policy.setProxyServer ("87.65.43.21"); Policy.setProxyServerPort (808); Policy.setAllowChunking (wrong); HttpConduit.setClient (policy); // call string feedback = port.sayHello ("world");  


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -