対応する Spring XML 構成は次のとおりです。
ドキュメント : http://cxf.apache.org/docs/client-http-transport-included-ssl-support.html
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:http-conf="http://cxf.apache.org/transports/http/configuration"
xmlns:sec="http://cxf.apache.org/configuration/security"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd
http://cxf.apache.org/configuration/security http://cxf.apache.org/schemas/configuration/security.xsd">
<http-conf:conduit name="*.http-conduit">
<http-conf:client ProxyServer="proxy" ProxyServerPort="8080"/>
<http-conf:proxyAuthorization>
<sec:UserName>proxy_user</sec:UserName>
<sec:Password>proxy_pass</sec:Password>
</http-conf:proxyAuthorization>
</http-conf:conduit>
これを機能させるには、 cxf.xml をインポートする必要があります。
<import resource="classpath:META-INF/cxf/cxf.xml"/>
この httpConduit はすべての CXF クライアント (複数の場合) で有効になることに注意してください。
サービス コンジット のみに一致するようにコンジット名を構成する必要があります。
name="{http://example.com/}HelloWorldServicePort.http-conduit"