cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "asic (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-6218) CXF client not use proxy server
Date Thu, 22 Jan 2015 16:18:35 GMT

    [ https://issues.apache.org/jira/browse/CXF-6218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14287665#comment-14287665
] 

asic commented on CXF-6218:
---------------------------

Our client : 
		// define proxy on jvm
		/*
		System.setProperty("http.proxyHost","87.65.43.21");
		System.setProperty("http.proxyPort", "808");
		System.setProperty("https.proxyHost", "87.65.43.21");
		System.setProperty("https.proxyPort", "808");
		*/
		
		// initialize ws
		URL wsdlLocation = new URL("https://12.34.56.78:8443/mockHelloWorldSoapBinding?WSDL");
		QName qName = new QName("http://my.webservice.com", "HelloWorldService");
		HelloWorldService helloWorldService = new HelloWorldService(wsdlLocation, qName);
		HelloWorld port = helloWorldService.getHelloWorld();
		HTTPConduit httpConduit = (HTTPConduit) ClientProxy.getClient(port).getConduit();
		
		// add proxy parameters
		HTTPClientPolicy policy = new HTTPClientPolicy();
		policy.setProxyServer("87.65.43.21");
		policy.setProxyServerPort(808);
		policy.setAllowChunking(false);
		httpConduit.setClient(policy);
		
		// call ws
		String response = port.sayHello("world");

> CXF client not use proxy server
> -------------------------------
>
>                 Key: CXF-6218
>                 URL: https://issues.apache.org/jira/browse/CXF-6218
>             Project: CXF
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.7.11
>         Environment: windows 7, Java 1.6.0_45
>            Reporter: asic
>              Labels: proxy, sll
>             Fix For: 2.7.15
>
>
> We have a CXF (2.7.x) client (see code below) in a Java 1.6.0_45 application.
> The CXF client calls a Soap WS through a proxy server.
> Despite all our efforts, that CXF client performs some requests directly to the WS bypassing
the proxy (spy with wireshark).
> The only solution for the moment is to force proxy on the JVM options.
> But this solution is not acceptable.
> To reproduce the problem, we create the following elements : 
> - create a mock server with soapui 5.0.0
> - launch ccproxy (our proxy server)
> - execute the client
> - spy all with wireshark



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message