锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产a v无码专区亚洲av,国产亚洲福利精品一区二区,亚洲av极品无码专区在线观看http://m.tkk7.com/Hafeyang/category/43542.htmlHafeyang鐩墠浠庝簨閿鍞鍩熺郴緇熷紑鍙戯紝闀夸簬鍓嶇寮鍙戙備箰鎰忓垎浜?/description>zh-cnTue, 12 Jan 2010 09:14:31 GMTTue, 12 Jan 2010 09:14:31 GMT60Spring+CXF閰嶇疆HTTP浠g悊璁塊棶Internethttp://m.tkk7.com/Hafeyang/archive/2010/01/12/309178.html闃寵 閿?/dc:creator>闃寵 閿?/author>Tue, 12 Jan 2010 09:10:00 GMThttp://m.tkk7.com/Hafeyang/archive/2010/01/12/309178.htmlhttp://m.tkk7.com/Hafeyang/comments/309178.htmlhttp://m.tkk7.com/Hafeyang/archive/2010/01/12/309178.html#Feedback0http://m.tkk7.com/Hafeyang/comments/commentRss/309178.htmlhttp://m.tkk7.com/Hafeyang/services/trackbacks/309178.html涓涓吀鍨嬬殑CXF Webservice欏圭洰閮ㄧ講鍒版寮忕幆澧冨悗錛屾湇鍔″櫒涓嶈兘璁塊棶澶栫綉錛屽彧鑳介氳繃浠g悊璁塊棶澶栫綉錛屾壘浜嗗緢澶氳祫鏂欙紝鍒氬紑濮嬫兂娉曟槸涓嶇敤Spring鐨勯厤緗枃浠訛紝鐩存帴鐢╦ava緙栫▼璁塊棶webservice銆傚湪java鐨凥ttp璇鋒眰涓嬌鐢ㄤ唬鐞嗙殑鏂規硶濡備笅錛?/p>
String authentication="username:password";//鐢ㄦ埛+”:”+瀵嗙爜
String encodedLogin= new BASE64Encoder().encode(authentication.getBytes());
Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress("IP", PORT));
HttpsURLConnection conn = (HttpsURLConnection) console.openConnection(proxy );
conn.setRequestProperty("Proxy-Authorization", " Basic " + encodedLogin);

浣跨敤JaxWsProxyFactoryBean鍒涘緩client

System.setProperty("http.proxySet", "true");
System.setProperty("http.proxyHost", "IP");
System.setProperty("http.proxyPort", "PORT");
JaxWsProxyFactoryBean f = new JaxWsProxyFactoryBean();
f.setAddress("THE URL OF WEBSERVICE");
f.setServiceClass(IService.class);
IService client = (IService) f.create();

鍙互浣跨敤浠g悊錛屼絾鏄敤鎴峰悕瀵嗙爜鏄笉鑳藉儚絎竴縐嶆柟娉曚腑閭f牱璁劇疆鍒癏ttpConnection閲岄潰鍘葷殑銆?/p>

鍙堝湪緗戜笂鎵句簡寰堝璧勬枡錛岀粓浜庢壘鍒頒簡涓涓厤緗殑鏂規硶銆?/p>

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cxf="http://cxf.apache.org/core"
xmlns:sec="http://cxf.apache.org/configuration/security"
xmlns:http-conf="http://cxf.apache.org/transports/http/configuration"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd
http://cxf.apache.org/configuration/security
http://cxf.apache.org/schemas/configuration/security.xsd
http://cxf.apache.org/transports/http/configuration
http://cxf.apache.org/schemas/configuration/http-conf.xsd">
    <http-conf:conduit name="*.http-conduit">
<http-conf:proxyAuthorization>
<!-- 鐢ㄦ埛鍚?-->
<sec:UserName>***</sec:UserName>
<!-- 瀵嗙爜 -->
<sec:Password>***</sec:Password>
</http-conf:proxyAuthorization>
<!--
ProxyServer IP                ProxyServerPort PORT
ProxyServerType: HTTP or SOCKS
-->
<http-conf:client
ProxyServer="192.168.1.4"
ProxyServerPort="808"
ProxyServerType="HTTP"
Connection="Keep-Alive"
AllowChunking="false"
ConnectionTimeout="50000"
ReceiveTimeout="120000"
/>
</http-conf:conduit>
<!-- Client   -->
</beans>

<http-conf:conduit name="*.http-conduit"> 榪欓噷鐨刵ame涓?#8221;*.http-conduit”鏃訛紝灝嗕細瀵規墍鏈夌殑client綾誨惎鐢ㄨ繖涓唬鐞嗭紝濡傛灉瑕侀厤緗煇涓猚lient綾諱嬌鐢ㄤ唬鐞嗭紝鍙互榪欎箞鍐?

<http-conf:conduit name="{http://widgets/widgetvendor.net}widgetSOAPPort.http-conduit>
...
</http-conf:conduit>

{}閲岄潰鐨勫唴瀹規槸webservice鐨剋sdl鐨?lt;wsdl:definitions name="serviceName" targetNamespace="

{}涔嬪悗.涔嬪墠鐨勫唴瀹規槸

<wsdl:port name="BasicHttpBinding_IService" binding="i0:BasicHttpBinding_IService">

<soap:address location="the address" />

</wsdl:port>

鐨刵ame灞炴с?/p>

涓婅堪wsdl瀵瑰簲鐨勯厤緗槸

<http-conf:conduit name="{http://hafeyang.blogjava.net}BasicHttpBinding_IService.http-conduit> ... </http-conf:conduit>

鍙傝冭祫鏂?/p>

http://fusesource.com/docs/framework/2.2/bind_trans/HTTPConsumerConfig.html

http://topic.csdn.net/u/20090331/09/f3ce02e0-29be-40cc-a534-9f2e5ac23f9e.html

http://old.nabble.com/http:conduit-Proxy-td20462360.html

http://mail-archives.apache.org/mod_mbox/servicemix-users/200807.mbox/<4885FCBB.5070506@gmail.com>



]]>
主站蜘蛛池模板: 亚洲欧美日韩国产精品一区| 亚洲人成网站在线在线观看| 亚洲AV成人影视在线观看| 无码一区二区三区亚洲人妻| a毛片免费全部在线播放**| 国产一卡2卡3卡4卡2021免费观看| 国产在线ts人妖免费视频| 亚洲国产日韩在线视频| 在线观看亚洲AV日韩A∨| 国产精品免费看久久久香蕉| 成人免费视频69| 亚洲综合最新无码专区| 亚洲午夜久久久久久尤物| 牛牛在线精品观看免费正 | 国产大片免费天天看| 日本人的色道免费网站| 亚洲电影日韩精品 | 亚洲中文字幕乱码AV波多JI | 国产免费不卡视频| 亚洲人成色7777在线观看不卡 | 免费不卡在线观看AV| 免费国产成人午夜电影| 亚洲精品乱码久久久久久下载 | 亚洲国产免费综合| 久久久久免费看黄A片APP| 亚洲春色在线视频| 亚洲av无码一区二区三区四区| 欧洲精品99毛片免费高清观看 | 亚洲激情校园春色| 国产精品1024在线永久免费| 女人18毛片a级毛片免费| 亚洲激情视频在线观看| 又粗又长又爽又长黄免费视频| 免费a级毛片高清视频不卡| 亚洲午夜久久久精品影院| fc2免费人成在线| 免费无码黄动漫在线观看| 亚洲AV美女一区二区三区| xvideos永久免费入口| 免费观看男人免费桶女人视频| 亚洲欧洲精品久久|