Are you using JDK8 update 111 or later?   If so, see:

http://www.oracle.com/technetwork/java/javase/8u111-relnotes-3124969.html

In the section labelled "Disable Basic authentication for HTTPS tunneling”.   
You can try setting the system property 
“jdk.http.auth.tunneling.disabledSchemes” to an empty string and see if that 
helps.



Dan




> On Jan 18, 2017, at 10:19 AM, Bilgehan Maraş <[email protected]> wrote:
> 
> Hi,
> 
> I am trying to consume a ws-trust enabled webservice through proxy server.
> The service is served over https
> 
> In my client configuration i have
> 
> 
> <jaxws:client name="***" createdFromAPI="true">
>    <jaxws:properties>
>        <entry key="ws-security.sts.client">
>            <bean class="org.apache.cxf.ws.security.trust.STSClient">
>                <constructor-arg ref="cxf"/>
>                <property name="wsdlLocation" value="***"/>
>                <property name="serviceName" value="***/>
>                <property name="endpointName" value="***"/>
>            </bean>
>        </entry>
>    </jaxws:properties>
> </jaxws:client>
> 
> <http-conf:conduit name="*.http-conduit">
>    <http-conf:client ProxyServer="***" ProxyServerPort="3128" />
>    <http-conf:proxyAuthorization>
>        <conf-sec:UserName>***</conf-sec:UserName>
>        <conf-sec:Password>***</conf-sec:Password>
>    </http-conf:proxyAuthorization>
> </http-conf:conduit>
> 
> 
> I get the following error. There is a similar bug report (
> https://issues.apache.org/jira/browse/CXF-2223 ) but it is marked at
> resolved at 2.1.9. My cxf version is 3.0.3
> 
> Unable to tunnel through proxy. Proxy returns "HTTP/1.0 407 Proxy
> Authentication Required"
>    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
>    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
> Source)
>    at java.lang.reflect.Constructor.newInstance(Unknown Source)
>    at
> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.mapException(HTTPConduit.java:1359)
>    at
> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1343)
>    at
> org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
>    at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:638)
>    at
> org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
> 
> Any help is appreciated
> 
> Regards,
> Bilgehan

-- 
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Reply via email to