锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久久无码精品亚洲日韩蜜桃,亚洲国产高清在线精品一区,亚洲线精品一区二区三区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璇鋒眰涓嬌鐢ㄤ唬鐞嗙殑鏂規(guī)硶濡備笅錛?/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>

鍙堝湪緗戜笂鎵句簡寰堝璧勬枡錛岀粓浜庢壘鍒頒簡涓涓厤緗殑鏂規(guī)硶銆?/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”鏃訛紝灝嗕細瀵規(guī)墍鏈夌殑client綾誨惎鐢ㄨ繖涓唬鐞嗭紝濡傛灉瑕侀厤緗煇涓猚lient綾諱嬌鐢ㄤ唬鐞嗭紝鍙互榪欎箞鍐?

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

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

{}涔嬪悗.涔嬪墠鐨勫唴瀹規(guī)槸

<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免费观看黄色大片| 亚洲av午夜成人片精品网站 | 日韩免费一区二区三区在线播放| 亚洲一区二区三区电影| 精品一区二区三区无码免费视频| 亚洲成人在线网站| 日本人的色道免费网站| 亚洲免费福利在线视频| 日本一线a视频免费观看| 美女露隐私全部免费直播| 亚洲色偷拍区另类无码专区| 免费网站观看WWW在线观看| 亚洲精品自产拍在线观看动漫| 国产91色综合久久免费| 亚洲人成影院77777| 日韩成人在线免费视频 | 你是我的城池营垒免费观看完整版| 亚洲日本一区二区三区在线| 日韩精品无码专区免费播放| 亚洲成年人电影网站| 日本不卡视频免费| 中文在线观看永久免费| AAA日本高清在线播放免费观看| 久久精品国产亚洲av四虎| 日本阿v免费费视频完整版| 亚洲精品色在线网站| 亚洲熟妇中文字幕五十中出| 1000部拍拍拍18勿入免费视频下载| 美女视频黄免费亚洲| 亚洲熟妇少妇任你躁在线观看无码| 日韩精品内射视频免费观看| 亚洲啪AV永久无码精品放毛片| 中文字幕精品无码亚洲字| 久久国产免费福利永久| 国产V片在线播放免费无码 | 91精品国产免费| 久久综合亚洲色hezyo|