锘??xml version="1.0" encoding="utf-8" standalone="yes"?>成人av二区,亚洲自拍都市欧美小说,黄页网站在线观看http://www.aygfsteel.com/kusejava/category/10916.htmlzh-cnWed, 28 Feb 2007 07:46:43 GMTWed, 28 Feb 2007 07:46:43 GMT60axis2 鍙戝竷webservice璁?/title><link>http://www.aygfsteel.com/kusejava/archive/2006/05/09/45246.html</link><dc:creator>kuse鐨刯ava嫻佹按甯?/dc:creator><author>kuse鐨刯ava嫻佹按甯?/author><pubDate>Tue, 09 May 2006 09:28:00 GMT</pubDate><guid>http://www.aygfsteel.com/kusejava/archive/2006/05/09/45246.html</guid><wfw:comment>http://www.aygfsteel.com/kusejava/comments/45246.html</wfw:comment><comments>http://www.aygfsteel.com/kusejava/archive/2006/05/09/45246.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/kusejava/comments/commentRss/45246.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/kusejava/services/trackbacks/45246.html</trackback:ping><description><![CDATA[ <p>緗戜笂鍏充簬axis2鍋歸ebservice鐨勪腑鏂囨枃绔犲茍涓嶅<br />axis2紜疄鍜宎xis1鏈夊緢澶т笉鍚?br /><br />鍏朵腑榪斿洖鑷畾涔夊璞$殑鏂規硶浼間箮灝變笉鍏煎(鍙兘浠呬粎鏄垜榪樻病鐮旂┒鍑烘潵), axis1榪斿洖瀵硅薄鎴栧璞″垪琛ㄥ彲浠ョ洿鎺ュ湪鏂規硶榪斿洖綾誨瀷涓啓鏄? serverlet浼氳嚜鍔ㄧ炕璇戞垚wsdl, 铏界劧axis2涔熷彲浠ヨ嚜鍔ㄧ炕璇? 浣嗘槸鐢ㄨ繃鐨勫鎴風鐢熸垚宸ュ叿閮芥病娉曠洿鎺ヤ嬌鐢ㄦ鏈嶅姟, 鏈鍚庨兘褰掍簬"鍒癘MElemet 瀵硅薄鏃犳硶杞崲", 鎵浠ユ垜鐨勬柟娉曞彧濂借嚜宸卞啓杞崲鍑芥暟, 鎴戞兂榪欎釜搴旇涓嶆槸axis2鐨勬爣鍑嗘柟娉曞惂, 鎬庝箞浼氳秺鏉ヨ秺楹葷儲?<br /><br />涓嬮潰璁蹭竴涓嬫垜鐨勪嬌鐢ㄦ祦紼?br />闇姹? 鍋氫釜webservice鏈嶅姟, 浠庢暟鎹簱閲岄潰璇誨彇flightleg鐨勪竴涓垪琛ㄥ茍榪斿洖, flightleg鍒楄〃鍙互璁や負鏄粡榪囦竴涓猻elect璇彞榪斿洖鐨勮褰曢泦鍚?br /><br />杞歡鐜, windows xp sp2, tomcat5.5 for windows 鍗曚竴瀹夎鐗? jre1.5(tomcat5.5鐨勯渶瑕?, axis2-0.95(褰撴椂鏄渶鏂扮増)<br /><br />璇曢獙嫻佺▼:<br /><br />聽聽聽聽聽聽聽鐩存帴瀹夎 tomcat5.5 for windows , 鍙戠幇鏈嶅姟鎬繪槸鍦ㄥ惎鍔ㄤ箣鍚庨┈涓婅嚜宸卞叧闂? 鏌ユ壘鍘熷洜, 鍙戠幇鍘熸潵鑷繁鐢ㄧ殑閮芥槸jre1.4, 鍚庝粠鍒湴鎷瘋礉涓涓猨re_1.5鐩綍鍒癙rogram Files\j2sdk1.4.2_05涓? 鐒跺悗璁劇疆tomcat鐨?java virtual machine 涓篜rogram Files\j2sdk1.4.2_05\jre_1.5\bin\client\jvm.dll , 鍗沖彲姝e父鍚姩.<br /><br />聽聽聽聽聽聽 axis2瀹夎, 榪欎釜緗戜笂浠嬬粛鐨勫緢澶? 涔熷緢瀹規槗, 灝變笅杞介偅涓猘xis2.war鍖? 鎷瘋礉鍒癙rogram Files\Apache Software Foundation\Tomcat 5.5\webapps\鐩綍涓? 灝辯畻鍙戝竷浜? tomcat鑷姩鎰熺煡, 騫剁敓鎴恆xis2榪欎釜鐩綍緇撴瀯.聽 榪涘叆<a href="http://localhost:8080/axis2/">http://localhost:8080/axis2/</a>聽鍙互鐪嬪埌嬈㈣繋欏甸潰, 鐒跺悗鐐瑰嚮<a href="http://localhost:8080/axis2/listServices">Services</a> 鍙互鐪嬪埌鍑犱釜紺鴻寖serviece, 鍏蜂綋鎬庝箞浣跨敤灝變笉澶氳浜? 緗戜笂涓嶅皯, 鑷甫鐨刣oc涔熸湁璇存槑.<br />聽聽聽聽聽 緙栧啓service紼嬪簭, 鍚庨潰閫昏緫灝變笉綆′簡, 鍏抽敭瑕佺紪鍐欎釜serviceproxy綾?聽 騫跺湪閲岄潰鏆撮湶鏂規硶浣滀負webserivce璋冪敤, sample閲岄潰涔熸湁寰堝, 浣嗘槸鑷充粖榪樻病鐪嬪埌榪斿洖鑷畾涔夊璞$殑. 鎴戝啓鐨勫涓?</p> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> <span style="COLOR: #000000">聽聽聽聽</span> <span style="COLOR: #0000ff">public</span> <span style="COLOR: #000000">聽OMElement聽getPVGFlightLegs()<br /><img id="Codehighlighter1_44_285_Open_Image" onclick="this.style.display='none'; Codehighlighter1_44_285_Open_Text.style.display='none'; Codehighlighter1_44_285_Closed_Image.style.display='inline'; Codehighlighter1_44_285_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_44_285_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_44_285_Closed_Text.style.display='none'; Codehighlighter1_44_285_Open_Image.style.display='inline'; Codehighlighter1_44_285_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedBlock.gif" align="top" />聽聽聽聽</span> <span id="Codehighlighter1_44_285_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"> <img src="http://www.aygfsteel.com/images/dot.gif" /> </span> <span id="Codehighlighter1_44_285_Open_Text"> <span style="COLOR: #000000">{<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽List聽list聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #0000ff">null</span> <span style="COLOR: #000000">;<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽InquiryEngine聽engine聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽InquiryFactory.getInquiryEngine();<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽list聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽(List)engine.getPVGFlightLegs();<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽OMElement聽ele聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #0000ff">null</span> <span style="COLOR: #000000">;<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽ele聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽createOMElementFromList(list);<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽</span> <span style="COLOR: #0000ff">return</span> <span style="COLOR: #000000">聽ele;<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />聽聽聽聽}</span> </span> </div> <p>聽聽聽聽 榪斿洖鐨勬槸OMElement 緇熶竴瀵硅薄, 闇瑕佽嚜宸辨瀯閫燨MElement瀵硅薄鏍戝茍榪斿洖,聽 createOMElementFromList() 浠g爜濡備笅:<br /><br /></p> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"> <p> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> <span style="COLOR: #000000">聽聽聽聽</span> <span style="COLOR: #0000ff"> <font color="#000000">聽聽聽 public OMElement createOMElementFromList(List flightLegInfoList)聽聽 <br />聽聽聽 {<br />聽聽聽聽聽聽聽 <br />聽聽聽聽聽聽聽 OMFactory fac = OMAbstractFactory.getOMFactory();<br />聽聽聽聽聽聽聽 OMNamespace omNs = fac.createOMNamespace("<a href="http://localhost:8080/axis2/services/FidsService">http://localhost:8080/axis2/services/FidsService</a>", "fids");<br />聽聽聽聽聽聽聽 OMElement resp = fac.createOMElement("flightLeglist", omNs);<br />聽聽聽聽聽聽聽 for(Iterator it = flightLegInfoList.iterator(); it.hasNext(); )<br />聽聽聽聽聽聽聽 {<br />聽聽聽聽聽聽聽聽聽聽聽 FlightLegInfo flightLegInfo = (FlightLegInfo)it.next();</font> </span> </p> <p> <span style="COLOR: #0000ff"> <font color="#000000">聽聽聽聽聽聽聽聽 OMElement record = fac.createOMElement("record", omNs);<br />聽聽聽聽聽聽聽聽 OMElement flightNoElement = fac.createOMElement("flightNo", omNs);<br />聽聽聽聽聽聽聽聽 OMElement tailNoElement = fac.createOMElement("tailNo", omNs);<br />聽聽聽聽聽聽聽聽 flightNoElement.addChild(fac.createText(flightNoElement, flightLegInfo.getFlightNo()));<br />聽聽聽聽聽聽聽聽 tailNoElement.addChild(fac.createText(tailNoElement, flightLegInfo.getTailNo()));<br />聽聽聽聽聽聽聽聽 record.addChild(flightNoElement);<br />聽聽聽聽聽聽聽聽 record.addChild(tailNoElement);<br />聽聽聽聽聽聽聽聽 resp.addChild(record);<br />聽聽聽聽聽聽聽 } <br />聽聽聽聽聽聽聽 return resp;<br />聽聽聽 }</font> </span> <span id="Codehighlighter1_44_285_Open_Text"> <span style="COLOR: #000000"> </span> </span> </p> </div> <p>聽聽聽聽 浠g爜鐨勫惈涔夋槸榪斿洖鍖呭惈flightNo鍜宼ailNo鐨剅ecord鍒楄〃, 鏋勯犳垚XML鏍?<br /><br />聽聽聽聽 web-inf\services.xml 濡備笅:<br /></p> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> <span style="COLOR: #0000ff"><</span> <span style="COLOR: #800000">service聽</span> <span style="COLOR: #ff0000">name</span> <span style="COLOR: #0000ff">="FidsService"</span> <span style="COLOR: #0000ff">></span> <span style="COLOR: #000000"> <br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽</span> <span style="COLOR: #0000ff"><</span> <span style="COLOR: #800000">description</span> <span style="COLOR: #0000ff">></span> <span style="COLOR: #000000"> <br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽This聽is聽a聽fids聽web聽service.<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽</span> <span style="COLOR: #0000ff"></</span> <span style="COLOR: #800000">description</span> <span style="COLOR: #0000ff">></span> <span style="COLOR: #000000"> <br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽</span> <span style="COLOR: #0000ff"><</span> <span style="COLOR: #800000">parameter聽</span> <span style="COLOR: #ff0000">name</span> <span style="COLOR: #0000ff">="ServiceClass"</span> <span style="COLOR: #ff0000">聽locked</span> <span style="COLOR: #0000ff">="false"</span> <span style="COLOR: #0000ff">></span> <span style="COLOR: #000000">com.cea2.service.fids.ServiceProxy</span> <span style="COLOR: #0000ff"></</span> <span style="COLOR: #800000">parameter</span> <span style="COLOR: #0000ff">></span> <span style="COLOR: #000000"> <br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽</span> <span style="COLOR: #0000ff"><</span> <span style="COLOR: #800000">operation聽</span> <span style="COLOR: #ff0000">name</span> <span style="COLOR: #0000ff">="getPVGFlightLegs"</span> <span style="COLOR: #0000ff">></span> <span style="COLOR: #000000"> <br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽</span> <span style="COLOR: #0000ff"><</span> <span style="COLOR: #800000">messageReceiver聽</span> <span style="COLOR: #ff0000">class</span> <span style="COLOR: #0000ff">="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"</span> <span style="COLOR: #0000ff">/></span> <span style="COLOR: #000000"> <br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽</span> <span style="COLOR: #0000ff"></</span> <span style="COLOR: #800000">operation</span> <span style="COLOR: #0000ff">></span> <span style="COLOR: #000000"> <br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> <br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> </span> <span style="COLOR: #0000ff"></</span> <span style="COLOR: #800000">service</span> <span style="COLOR: #0000ff">></span> </div> <p>聽聽聽聽聽聽 鐒跺悗鎶婃墍鏈夌殑class,lib,web-inf\services.xml 絳夌粍緇囪搗鏉?鎵撲釜jar鍖? 騫舵敼鍚庣紑涓篴ar (榪欎釜榪囩▼鏈変釜eclipse鎻掍歡Axis2_Service_Archiver鍙互瀹屾垚榪欎釜榪囩▼, 浣嗕笉澶細鐢? 榪樹簨鍏堥渶瑕?wsdl鏂囦歡??), 騫舵嫹璐濆埌Program Files\Apache Software Foundation\Tomcat 5.5\webapps\axis2\WEB-INF\services\涓? 鐒跺悗閲嶅惎tomcat,聽 榪涘叆<a href="http://localhost:8080/axis2/">http://localhost:8080/axis2/</a>聽鐪媠ervices, 閲岄潰鏈?a href="http://localhost:8080/axis2/services/FidsService?wsdl">FidsService</a>, 鐐瑰嚮鍙互鐪嬪埌wsdl, 鏈嶅姟绔畻鎴愬姛澶у崐浜?<br /><br /><br />聽聽聽聽聽 瀹㈡埛绔? 鍦ㄥ仛榪斿洖鑷畾涔夊璞$殑鏃跺? 鐢ㄤ簡鍑犱釜eclipse鑷姩鐢熸垚宸ュ叿, 鐢氳嚦榪樼敤浜哸xis2鑷甫鍛戒護琛寃sdl2java, 閮戒笉琛? 鏀逛負榪斿洖OMElement鐨勬椂鍊? 灝卞共鑴嗘病鏈夌敤gererator,聽 鐩存帴鍐欎簡testClient綾? 騫舵妸service绔腑鐨凢lightLegInfo(瀵瑰簲鍗曟潯璁板綍瀵硅薄)鎷瘋礉榪囨潵.聽 testClient濡備笅<br /><br /></p> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> <span style="COLOR: #0000ff">package</span> <span style="COLOR: #000000">聽test;<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /></span> <span style="COLOR: #0000ff">import</span> <span style="COLOR: #000000">聽org.apache.axis2.AxisFault;<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /></span> <span style="COLOR: #0000ff">import</span> <span style="COLOR: #000000">聽org.apache.axis2.Constants;<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /></span> <span style="COLOR: #0000ff">import</span> <span style="COLOR: #000000">聽org.apache.axis2.addressing.EndpointReference;<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /></span> <span style="COLOR: #0000ff">import</span> <span style="COLOR: #000000">聽org.apache.axis2.client.Options;<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /></span> <span style="COLOR: #0000ff">import</span> <span style="COLOR: #000000">聽org.apache.axis2.client.ServiceClient;<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /></span> <span style="COLOR: #0000ff">import</span> <span style="COLOR: #000000">聽org.apache.ws.commons.om.OMElement;<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /></span> <span style="COLOR: #0000ff">import</span> <span style="COLOR: #000000">聽org.apache.ws.commons.om.OMNode;<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /></span> <span style="COLOR: #0000ff">import</span> <span style="COLOR: #000000">聽javax.xml.stream.XMLOutputFactory;<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /></span> <span style="COLOR: #0000ff">import</span> <span style="COLOR: #000000">聽javax.xml.stream.XMLStreamException;<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /></span> <span style="COLOR: #0000ff">import</span> <span style="COLOR: #000000">聽java.io.StringWriter;<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /></span> <span style="COLOR: #0000ff">import</span> <span style="COLOR: #000000">聽java.util.ArrayList;<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /></span> <span style="COLOR: #0000ff">import</span> <span style="COLOR: #000000">聽java.util.Iterator;<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /></span> <span style="COLOR: #0000ff">import</span> <span style="COLOR: #000000">聽java.util.List;<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /><br /><img id="Codehighlighter1_503_613_Open_Image" onclick="this.style.display='none'; Codehighlighter1_503_613_Open_Text.style.display='none'; Codehighlighter1_503_613_Closed_Image.style.display='inline'; Codehighlighter1_503_613_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_503_613_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_503_613_Closed_Text.style.display='none'; Codehighlighter1_503_613_Open_Image.style.display='inline'; Codehighlighter1_503_613_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /></span> <span id="Codehighlighter1_503_613_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">/**聽*/</span> <span id="Codehighlighter1_503_613_Open_Text"> <span style="COLOR: #008000">/**</span> <span style="COLOR: #008000"> <br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />聽*聽Sample聽for聽synchronous聽single聽channel聽blocking聽service聽invocation.<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />聽*聽Message聽Exchage聽Pattern聽IN-OUT<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />聽</span> <span style="COLOR: #008000">*/</span> </span> <span style="COLOR: #000000"> <br /> <img id="Codehighlighter1_639_3334_Open_Image" onclick="this.style.display='none'; Codehighlighter1_639_3334_Open_Text.style.display='none'; Codehighlighter1_639_3334_Closed_Image.style.display='inline'; Codehighlighter1_639_3334_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /> <img id="Codehighlighter1_639_3334_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_639_3334_Closed_Text.style.display='none'; Codehighlighter1_639_3334_Open_Image.style.display='inline'; Codehighlighter1_639_3334_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /> </span> <span style="COLOR: #0000ff">public</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #0000ff">class</span> <span style="COLOR: #000000">聽testClient聽</span> <span id="Codehighlighter1_639_3334_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"> <img src="http://www.aygfsteel.com/images/dot.gif" /> </span> <span id="Codehighlighter1_639_3334_Open_Text"> <span style="COLOR: #000000">{<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽</span> <span style="COLOR: #0000ff">private</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #0000ff">static</span> <span style="COLOR: #000000">聽EndpointReference聽targetEPR聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #0000ff">new</span> <span style="COLOR: #000000">聽EndpointReference(</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">http://localhost:8080/axis2/services/FidsService</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">);<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" /><br /><img id="Codehighlighter1_809_1868_Open_Image" onclick="this.style.display='none'; Codehighlighter1_809_1868_Open_Text.style.display='none'; Codehighlighter1_809_1868_Closed_Image.style.display='inline'; Codehighlighter1_809_1868_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_809_1868_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_809_1868_Closed_Text.style.display='none'; Codehighlighter1_809_1868_Open_Image.style.display='inline'; Codehighlighter1_809_1868_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽聽</span> <span style="COLOR: #0000ff">public</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #0000ff">static</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #0000ff">void</span> <span style="COLOR: #000000">聽main(String聽args[])聽</span> <span id="Codehighlighter1_809_1868_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"> <img src="http://www.aygfsteel.com/images/dot.gif" /> </span> <span id="Codehighlighter1_809_1868_Open_Text"> <span style="COLOR: #000000">{<br /><img id="Codehighlighter1_823_1706_Open_Image" onclick="this.style.display='none'; Codehighlighter1_823_1706_Open_Text.style.display='none'; Codehighlighter1_823_1706_Closed_Image.style.display='inline'; Codehighlighter1_823_1706_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_823_1706_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_823_1706_Closed_Text.style.display='none'; Codehighlighter1_823_1706_Open_Image.style.display='inline'; Codehighlighter1_823_1706_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽聽聽聽聽聽</span> <span style="COLOR: #0000ff">try</span> <span style="COLOR: #000000">聽</span> <span id="Codehighlighter1_823_1706_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"> <img src="http://www.aygfsteel.com/images/dot.gif" /> </span> <span id="Codehighlighter1_823_1706_Open_Text"> <span style="COLOR: #000000">{<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽OMElement聽payload聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽ClientUtil.getEchoOMElement();<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽Options聽options聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #0000ff">new</span> <span style="COLOR: #000000">聽Options();<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽options.setTo(targetEPR);<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽options.setTransportInProtocol(Constants.TRANSPORT_HTTP);<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽options.setAction(</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">getPVGFlightLegs</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">);<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" /><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽</span> <span style="COLOR: #008000">//</span> <span style="COLOR: #008000">Blocking聽invocation</span> <span style="COLOR: #008000"> <br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" /> </span> <span style="COLOR: #000000">聽聽聽聽聽聽聽聽聽聽聽聽ServiceClient聽sender聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #0000ff">new</span> <span style="COLOR: #000000">聽ServiceClient();<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽sender.setOptions(options);<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽OMElement聽result聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽sender.sendReceive(payload);<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />聽<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽</span> <span style="COLOR: #008000">//</span> <span style="COLOR: #008000">鏄劇ずxml</span> <span style="COLOR: #008000"> <br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" /> </span> <span style="COLOR: #000000">聽聽聽聽聽聽聽聽聽聽聽聽StringWriter聽writer聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #0000ff">new</span> <span style="COLOR: #000000">聽StringWriter();<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽result.serialize(XMLOutputFactory.newInstance()<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽.createXMLStreamWriter(writer));<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽writer.flush();<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽System.out.println(writer.toString());<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽</span> <span style="COLOR: #008000">//</span> <span style="COLOR: #008000">System.out.println("first:");<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽</span> <span style="COLOR: #008000">//</span> <span style="COLOR: #008000">緇撴灉杞崲涓簂ist</span> <span style="COLOR: #008000"> <br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" /> </span> <span style="COLOR: #000000">聽聽聽聽聽聽聽聽聽聽聽聽List聽list聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽getResults(result);<br /><img id="Codehighlighter1_1736_1787_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1736_1787_Open_Text.style.display='none'; Codehighlighter1_1736_1787_Closed_Image.style.display='inline'; Codehighlighter1_1736_1787_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_1736_1787_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1736_1787_Closed_Text.style.display='none'; Codehighlighter1_1736_1787_Open_Image.style.display='inline'; Codehighlighter1_1736_1787_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽聽聽聽聽聽}</span> </span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #0000ff">catch</span> <span style="COLOR: #000000">聽(AxisFault聽axisFault)聽</span> <span id="Codehighlighter1_1736_1787_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"> <img src="http://www.aygfsteel.com/images/dot.gif" /> </span> <span id="Codehighlighter1_1736_1787_Open_Text"> <span style="COLOR: #000000">{<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽axisFault.printStackTrace();<br /><img id="Codehighlighter1_1819_1862_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1819_1862_Open_Text.style.display='none'; Codehighlighter1_1819_1862_Closed_Image.style.display='inline'; Codehighlighter1_1819_1862_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_1819_1862_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1819_1862_Closed_Text.style.display='none'; Codehighlighter1_1819_1862_Open_Image.style.display='inline'; Codehighlighter1_1819_1862_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽聽聽聽聽聽}</span> </span> <span style="COLOR: #000000">聽聽</span> <span style="COLOR: #0000ff">catch</span> <span style="COLOR: #000000">聽(XMLStreamException聽e)聽</span> <span id="Codehighlighter1_1819_1862_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"> <img src="http://www.aygfsteel.com/images/dot.gif" /> </span> <span id="Codehighlighter1_1819_1862_Open_Text"> <span style="COLOR: #000000">{<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽e.printStackTrace();<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽聽聽聽聽聽}</span> </span> <span style="COLOR: #000000"> <br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽聽}</span> </span> <span style="COLOR: #000000"> <br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽<br /><img id="Codehighlighter1_1929_2490_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1929_2490_Open_Text.style.display='none'; Codehighlighter1_1929_2490_Closed_Image.style.display='inline'; Codehighlighter1_1929_2490_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_1929_2490_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1929_2490_Closed_Text.style.display='none'; Codehighlighter1_1929_2490_Open_Image.style.display='inline'; Codehighlighter1_1929_2490_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽聽</span> <span style="COLOR: #0000ff">private</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #0000ff">static</span> <span style="COLOR: #000000">聽List聽getResults(OMElement聽element)聽</span> <span id="Codehighlighter1_1929_2490_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"> <img src="http://www.aygfsteel.com/images/dot.gif" /> </span> <span id="Codehighlighter1_1929_2490_Open_Text"> <span style="COLOR: #000000">{<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽Iterator聽iterator聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽element.getChildElements();<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽List聽list聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #0000ff">new</span> <span style="COLOR: #000000">聽ArrayList();<br /><img id="Codehighlighter1_2059_2463_Open_Image" onclick="this.style.display='none'; Codehighlighter1_2059_2463_Open_Text.style.display='none'; Codehighlighter1_2059_2463_Closed_Image.style.display='inline'; Codehighlighter1_2059_2463_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_2059_2463_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_2059_2463_Closed_Text.style.display='none'; Codehighlighter1_2059_2463_Open_Image.style.display='inline'; Codehighlighter1_2059_2463_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽聽聽聽聽聽</span> <span style="COLOR: #0000ff">while</span> <span style="COLOR: #000000">聽(iterator.hasNext())聽</span> <span id="Codehighlighter1_2059_2463_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"> <img src="http://www.aygfsteel.com/images/dot.gif" /> </span> <span id="Codehighlighter1_2059_2463_Open_Text"> <span style="COLOR: #000000">{<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽OMNode聽omNode聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽(OMNode)聽iterator.next();<br /><img id="Codehighlighter1_2172_2453_Open_Image" onclick="this.style.display='none'; Codehighlighter1_2172_2453_Open_Text.style.display='none'; Codehighlighter1_2172_2453_Closed_Image.style.display='inline'; Codehighlighter1_2172_2453_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_2172_2453_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_2172_2453_Closed_Text.style.display='none'; Codehighlighter1_2172_2453_Open_Image.style.display='inline'; Codehighlighter1_2172_2453_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽</span> <span style="COLOR: #0000ff">if</span> <span style="COLOR: #000000">聽(omNode.getType()聽</span> <span style="COLOR: #000000">==</span> <span style="COLOR: #000000">聽OMNode.ELEMENT_NODE)聽</span> <span id="Codehighlighter1_2172_2453_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"> <img src="http://www.aygfsteel.com/images/dot.gif" /> </span> <span id="Codehighlighter1_2172_2453_Open_Text"> <span style="COLOR: #000000">{<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽OMElement聽omElement聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽(OMElement)聽omNode;<br /><img id="Codehighlighter1_2297_2439_Open_Image" onclick="this.style.display='none'; Codehighlighter1_2297_2439_Open_Text.style.display='none'; Codehighlighter1_2297_2439_Closed_Image.style.display='inline'; Codehighlighter1_2297_2439_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_2297_2439_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_2297_2439_Closed_Text.style.display='none'; Codehighlighter1_2297_2439_Open_Image.style.display='inline'; Codehighlighter1_2297_2439_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span> <span style="COLOR: #0000ff">if</span> <span style="COLOR: #000000">聽(聽omElement.getLocalName().equals(</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">record</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">)聽)聽</span> <span id="Codehighlighter1_2297_2439_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"> <img src="http://www.aygfsteel.com/images/dot.gif" /> </span> <span id="Codehighlighter1_2297_2439_Open_Text"> <span style="COLOR: #000000">{<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽FlightLegInfo聽flightLegInfo聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽getFlightLegInfo(omElement);<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽list.add(flightLegInfo);<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽}</span> </span> <span style="COLOR: #000000"> <br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽}</span> </span> <span style="COLOR: #000000"> <br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽聽聽聽聽聽}</span> </span> <span style="COLOR: #000000"> <br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽</span> <span style="COLOR: #0000ff">return</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #0000ff">null</span> <span style="COLOR: #000000">;<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽聽}</span> </span> <span style="COLOR: #000000"> <br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽</span> <span style="COLOR: #0000ff">private</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #0000ff">static</span> <span style="COLOR: #000000">聽FlightLegInfo聽getFlightLegInfo(OMElement聽element)<br /><img id="Codehighlighter1_2570_3332_Open_Image" onclick="this.style.display='none'; Codehighlighter1_2570_3332_Open_Text.style.display='none'; Codehighlighter1_2570_3332_Closed_Image.style.display='inline'; Codehighlighter1_2570_3332_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_2570_3332_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_2570_3332_Closed_Text.style.display='none'; Codehighlighter1_2570_3332_Open_Image.style.display='inline'; Codehighlighter1_2570_3332_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽聽</span> <span id="Codehighlighter1_2570_3332_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"> <img src="http://www.aygfsteel.com/images/dot.gif" /> </span> <span id="Codehighlighter1_2570_3332_Open_Text"> <span style="COLOR: #000000">{<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽FlightLegInfo聽flightLegInfo聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #0000ff">new</span> <span style="COLOR: #000000">聽FlightLegInfo();<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽Iterator聽iterator聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽element.getChildElements();<br /><img id="Codehighlighter1_2722_3296_Open_Image" onclick="this.style.display='none'; Codehighlighter1_2722_3296_Open_Text.style.display='none'; Codehighlighter1_2722_3296_Closed_Image.style.display='inline'; Codehighlighter1_2722_3296_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_2722_3296_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_2722_3296_Closed_Text.style.display='none'; Codehighlighter1_2722_3296_Open_Image.style.display='inline'; Codehighlighter1_2722_3296_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽聽聽聽聽聽</span> <span style="COLOR: #0000ff">while</span> <span style="COLOR: #000000">聽(iterator.hasNext())聽</span> <span id="Codehighlighter1_2722_3296_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"> <img src="http://www.aygfsteel.com/images/dot.gif" /> </span> <span id="Codehighlighter1_2722_3296_Open_Text"> <span style="COLOR: #000000">{<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽OMNode聽omNode聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽(OMNode)聽iterator.next();<br /><img id="Codehighlighter1_2835_3286_Open_Image" onclick="this.style.display='none'; Codehighlighter1_2835_3286_Open_Text.style.display='none'; Codehighlighter1_2835_3286_Closed_Image.style.display='inline'; Codehighlighter1_2835_3286_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_2835_3286_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_2835_3286_Closed_Text.style.display='none'; Codehighlighter1_2835_3286_Open_Image.style.display='inline'; Codehighlighter1_2835_3286_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽</span> <span style="COLOR: #0000ff">if</span> <span style="COLOR: #000000">聽(omNode.getType()聽</span> <span style="COLOR: #000000">==</span> <span style="COLOR: #000000">聽OMNode.ELEMENT_NODE)聽</span> <span id="Codehighlighter1_2835_3286_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"> <img src="http://www.aygfsteel.com/images/dot.gif" /> </span> <span id="Codehighlighter1_2835_3286_Open_Text"> <span style="COLOR: #000000">{<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽OMElement聽omElement聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽(OMElement)聽omNode;<br /><img id="Codehighlighter1_2962_3121_Open_Image" onclick="this.style.display='none'; Codehighlighter1_2962_3121_Open_Text.style.display='none'; Codehighlighter1_2962_3121_Closed_Image.style.display='inline'; Codehighlighter1_2962_3121_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_2962_3121_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_2962_3121_Closed_Text.style.display='none'; Codehighlighter1_2962_3121_Open_Image.style.display='inline'; Codehighlighter1_2962_3121_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span> <span style="COLOR: #0000ff">if</span> <span style="COLOR: #000000">聽(聽omElement.getLocalName().equals(</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">flightNo</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">)聽)聽</span> <span id="Codehighlighter1_2962_3121_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"> <img src="http://www.aygfsteel.com/images/dot.gif" /> </span> <span id="Codehighlighter1_2962_3121_Open_Text"> <span style="COLOR: #000000">{<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽flightLegInfo.setFlightNo(omElement.getText());<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽System.out.println(</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">flightNo:</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">+</span> <span style="COLOR: #000000">omElement.getText());<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽}</span> </span> <span style="COLOR: #000000"> <br /> <img id="Codehighlighter1_3188_3272_Open_Image" onclick="this.style.display='none'; Codehighlighter1_3188_3272_Open_Text.style.display='none'; Codehighlighter1_3188_3272_Closed_Image.style.display='inline'; Codehighlighter1_3188_3272_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /> <img id="Codehighlighter1_3188_3272_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_3188_3272_Closed_Text.style.display='none'; Codehighlighter1_3188_3272_Open_Image.style.display='inline'; Codehighlighter1_3188_3272_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span> <span style="COLOR: #0000ff">if</span> <span style="COLOR: #000000">聽(聽omElement.getLocalName().equals(</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">tailNo</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">)聽)聽</span> <span id="Codehighlighter1_3188_3272_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"> <img src="http://www.aygfsteel.com/images/dot.gif" /> </span> <span id="Codehighlighter1_3188_3272_Open_Text"> <span style="COLOR: #000000">{<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽flightLegInfo.setTailNo(omElement.getText());<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽}</span> </span> <span style="COLOR: #000000"> <br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽}</span> </span> <span style="COLOR: #000000"> <br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽聽聽聽聽聽}</span> </span> <span style="COLOR: #000000"> <br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽</span> <span style="COLOR: #0000ff">return</span> <span style="COLOR: #000000">聽flightLegInfo;<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽聽}</span> </span> <span style="COLOR: #000000"> <br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span> </span> <span style="COLOR: #000000"> <br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> </span> </div> <p>聽</p> <p>聽聽聽聽 闇瑕佽嚜宸辮漿鎹㈡垚FlightLegInfo聽鐨刲ist, 鍥炬柟渚? 鐩存帴鍦ㄨ漿鎹㈠嚱鏁伴噷闈㈡墦鍗頒簡涓浜涙祴璇曡緭鍑烘暟鎹?聽 綆楁槸瀹屾垚浜唖ervice鐨勫紑鍙?</p> <img src ="http://www.aygfsteel.com/kusejava/aggbug/45246.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/kusejava/" target="_blank">kuse鐨刯ava嫻佹按甯?/a> 2006-05-09 17:28 <a href="http://www.aygfsteel.com/kusejava/archive/2006/05/09/45246.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> 主站蜘蛛池模板: <a href="http://" target="_blank">青河县</a>| <a href="http://" target="_blank">东台市</a>| <a href="http://" target="_blank">元朗区</a>| <a href="http://" target="_blank">清镇市</a>| <a href="http://" target="_blank">金塔县</a>| <a href="http://" target="_blank">全南县</a>| <a href="http://" target="_blank">丘北县</a>| <a href="http://" target="_blank">茌平县</a>| <a href="http://" target="_blank">秀山</a>| <a href="http://" target="_blank">大化</a>| <a href="http://" target="_blank">鹤山市</a>| <a href="http://" target="_blank">辽阳县</a>| <a href="http://" target="_blank">赤峰市</a>| <a href="http://" target="_blank">清徐县</a>| <a href="http://" target="_blank">大姚县</a>| <a href="http://" target="_blank">辽源市</a>| <a href="http://" target="_blank">牙克石市</a>| <a href="http://" target="_blank">宁陵县</a>| <a href="http://" target="_blank">从江县</a>| <a href="http://" target="_blank">马关县</a>| <a href="http://" target="_blank">巫溪县</a>| <a href="http://" target="_blank">卓尼县</a>| <a href="http://" target="_blank">精河县</a>| <a href="http://" target="_blank">伊通</a>| <a href="http://" target="_blank">二手房</a>| <a href="http://" target="_blank">苗栗市</a>| <a href="http://" target="_blank">雅安市</a>| <a href="http://" target="_blank">吉安县</a>| <a href="http://" target="_blank">平利县</a>| <a href="http://" target="_blank">台山市</a>| <a href="http://" target="_blank">峨边</a>| <a href="http://" target="_blank">西峡县</a>| <a href="http://" target="_blank">岗巴县</a>| <a href="http://" target="_blank">饶河县</a>| <a href="http://" target="_blank">黄陵县</a>| <a href="http://" target="_blank">连江县</a>| <a href="http://" target="_blank">永靖县</a>| <a href="http://" target="_blank">台中县</a>| <a href="http://" target="_blank">靖江市</a>| <a href="http://" target="_blank">涪陵区</a>| <a href="http://" target="_blank">琼海市</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>