??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲精品乱码久久久久久蜜桃不卡,亚洲五月六月丁香激情,亚洲精品无码永久在线观看你懂的http://www.tkk7.com/jackyhuang/JAVA人生章zh-cnSat, 10 May 2025 18:47:30 GMTSat, 10 May 2025 18:47:30 GMT60日常记录http://www.tkk7.com/jackyhuang/archive/2006/08/25/65705.htmljackyhuangjackyhuangFri, 25 Aug 2006 02:36:00 GMThttp://www.tkk7.com/jackyhuang/archive/2006/08/25/65705.htmlhttp://www.tkk7.com/jackyhuang/comments/65705.htmlhttp://www.tkk7.com/jackyhuang/archive/2006/08/25/65705.html#Feedback1http://www.tkk7.com/jackyhuang/comments/commentRss/65705.htmlhttp://www.tkk7.com/jackyhuang/services/trackbacks/65705.html

jackyhuang 2006-08-25 10:36 发表评论
]]>
献给IT同\人(转自天(dng)Q?/title><link>http://www.tkk7.com/jackyhuang/archive/2006/05/30/48979.html</link><dc:creator>jackyhuang</dc:creator><author>jackyhuang</author><pubDate>Tue, 30 May 2006 06:22:00 GMT</pubDate><guid>http://www.tkk7.com/jackyhuang/archive/2006/05/30/48979.html</guid><wfw:comment>http://www.tkk7.com/jackyhuang/comments/48979.html</wfw:comment><comments>http://www.tkk7.com/jackyhuang/archive/2006/05/30/48979.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/jackyhuang/comments/commentRss/48979.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/jackyhuang/services/trackbacks/48979.html</trackback:ping><description><![CDATA[一<br />      <br />  公元二零零六q五月二十三日,是天(dng)论坛为十八日在华为公叔R倒下的胡新宇君祝的那一天,我独在论坛外徘徊Q遇见慧君,前来问我道,“先生可曾ؓ(f)胡新宇写?jin)一点什么没有?”我说“没有”。他正告我Q“先生还是写一点ŞQ新宇君病前一直未能看到先生的评论Q此后恐怕也隄C(jin)。。。?br />      <br />  q是我知道的Q凡我所发的文章Q大概是因ؓ(f)往往员工常常加班Q又不允怸|之故ŞQ点M向就甚ؓ(f)寥落Q然而在q样的高压工作中Q终因加班倒下的就有他。我也早觉得有写一点东西的必要?jin),q虽然于改变公司毫不相干Q但在员工,却大抵只能如此而已。倘(sh)我能够相信真有所谓“劳工权利”,那自然可以得到更大的安慰Q——但是,现在Q却只能如此而已?br />      <br />  可是我实在无话可说。我只觉得所工作的ƈ非长久之地。一个青q的生命Q挣(zhun)扎在我的周围Q我艰于呼吸视听,那里q能有什么言语?长歌当哭Q是必须在痛定之后的。而此后几个所谓“h大主仠Z的阴险的论调,我觉得?zhn)哀。我已经出离愤怒了(jin)。我深呌非h间的黑的?zhn)凉;以我的最大哀痛显CZ非h_(d)使它们快意于我的苦痛Q就这作ؓ(f)L(fng)者的菲薄的祝愿,奉献于倒下者的面前?br />      <br />?br />      <br />   打工的中国hQ不得不直面惨E的h生,不得不正视淋漓的鲜血。这是怎样的哀痛者和q福者?然而造化又不常常为“弱势群体”设计,以时间的驶Q来z旧迹Q仅使留下EU的血色和微漠的?zhn)哀。在qEU的血色和微漠的?zhn)哀中,又给人暂得偷生,l持着q似人非人的世界。我不知道这L(fng)世界何时是一个尽_(d)<br />      <br />   我们q在q样的世上活着Q我也早觉得有写一点东西的必要?jin)。离五月十八日也已有两星期,忘却的救d要降临了(jin)|,我正有写一点东西的必要?jin)?br />      <br />?br />      <br />   在华为倒下的青q之中,胡新宇君是我的同事。同事云者,我向来这hQ这栯Q现在却觉得有些t躇?jin),我应该对他奉献我的(zhn)哀与尊敬。他不仅是“苟zd现在的我”的同事Q又是ؓ(f)?jin)华倒下的劳工?br />      <br />   他的姓名W一ơؓ(f)我所见,是在d夏初应届新员工报道,一赯行大队文化培训的时候。其中的一个就是他Q但是我不认识。直到后来,也许已经是培训结束,分到固网产品U之后了(jin)Q才有h指着一个加班的人告诉我Q说Q这是胡新宇。其时我才能姓名和实体联合hQ心(j)中却暗自诧异。我q素惻Iq于华ؓ(f)的“加班文化”,不得已而加班的Q往往都有些怨言。而他却是深受华ؓ(f)文化改变Q认Z加班是不对Q加班才是正常的。待C加班常说头痛Q又说女友因加班而分手,我才见他想不清ؓ(f)什么照公司灌输的去做,竟然?x)是q样Q又想不清究竟是谁不对,黯然至于伤。MQ在我的记忆上,那一ơ就是永别了(jin)?br />      <br />?br />      <br />   我在十八日早晨,才知道固|有员工倒下的事Q二十日便得到噩耗,说北大医院不能救治,现已转到中山医院Q而遇此不q者就是胡新宇君。但我对于传说其上司?“不加班是工作量不饱和”,竟至于颇为怀疑。我向来是不惮以最坏的恶意Q来推测某些人的Q然而我q(sh)料,也不信竟?x)下劣凶D到q地步。况且始l微W着的和蔼的胡新宇君Q更何至于无端在华ؓ(f)公司倒下呢?<br />      <br />   然而即日证明是事实?jin),作证的便是他自己w上插满的管子;q有一Ӟ是病危通知书。而且又证明着q不但是生病Q实际是工伤Q因为新宇君Z(jin)加班Q竟睡也在公司?br />      <br />   但华为公司就有o(h)Q说“不许在公司q夜”!<br />   但接着有Q说员工q劳L“应该”的Q?br />      <br />   惨象Q已使我目不忍视?jin);言Q尤使我耳不忍闻。我q有什么话可说呢?我懂得衰亡民族之所以默无声息的~由?jin)。沉默呵Q沉默呵Q不在沉默(sh)爆发Q就在沉默(sh)灭亡?br />      <br />?br />      <br />   但是Q我q有要说的话?br />      <br />   我没有亲见;听说他,胡新宇君Q那时是ƣ然加班的。自?dng)加班而已Qؓ(f)?jin)公司的满意Q谁也不?x)料到有q样的后果。但竟在办公位上倒下?jin),从周一加班Q到周五加班Q已是非人的劳篏Q只是没有h敢反寏V又每月臛_有一个周六要加班Q说是“调休假”。那天胡君说很不舒服Q但又说“不加班得不了(jin)AQ要得CQ甚臌淘汰?jin)”,于是坚持Q终于倒下?jin)?br />      <br />   始终微笑的和蔼的胡新宇君是牺牲掉了(jin)Q这是真的,有他自己的病׃ؓ(f)证;沉勇而友q外派华ؓ(f)员工也牺牲掉?jin),有他们妻子女友的分手Q只有一h勇而友q华ؓ(f)ChQ还在文化培训中热血沸腾?br />      <br />   当弱势的力_者,艰难地{辗于资本者所发明的“制度”与“文化”的时候,q是怎样的一个惊?j)动的D酷呵!中国力_法的“每周工作时间不过44时”的条款Q华为公司的“以Zؓ(f)本”的宣传Q不q全被这几缕血痕抹杀?jin)?br />      <br />   但是Q“h性”制度下的吃却居然昂v头来Q不知道个个毛孔里流着血污……?br />      <br />?br />      <br />   旉永是驶Q街?jng)依旧太qI有限的几个生命,在华为是不算什么的Q至多,不过供无恶意的员工以饭后的叹息,或者给有恶意的理者作“奉献文化”宣传的l好例子。至于此外的q意义Q我总觉得很寥寥Q因实在不过是徒劳的努力。华Z为“民族工业的?jing)傲”,有了(jin)某些人刻意的关照Q是隑֐到真实的Q但论坛q不在其中,更何冉|清醒的员工的声音?br />      <br />   然而既然有?jin)(zhn)剧?jin)Q当然不觉要警醒。至,也当警醒?jin)网友;家hQ同事的?j),U时光驶Q洗成绯U,也会(x)在微漠的(zhn)哀中永存微W的和蔼的旧影。马丁.路dQ金说过Q“我有一个梦想……正义和公正犹如江v之L涛,Ҏ(gu)澎湃Q滚滚而来。”倘若如此Q这也就够了(jin)?br />      <br />?br />      <br />   我已l说q:(x)我向来是不惮以最坏的恶意来推某些h的。但q回却很有几点出于我的意外。一是资本者竟?x)这样地视若|闻Q一是卫道者竟臛_此之h是非Q一是劳动者竟能如是之Mh宰割?br />      <br />   我目睹论坛中某些清醒的华ZhQ是始于今年的,虽然是少敎ͼ但看那拒l愚弄,力争严的气概,曄屡次Z感叹。至于这一回对遇难之事互相转告Q祝新宇君早日康复的事实Q则更为国Zq求人生而应有之权利Q虽遭阴谋秘计,压抑x(chng)千年Q而终于没有消亡的明证?jin)。倘要Lq一ơ死伤者对于将来的意义Q意义就在此|?br />      <br />   苟活者在淡红的血色中Q会(x)依稀看见微茫的希望;真的猛士Q将更奋然而前行?br />      <br />   呜呼Q我说不?gu)Q但以此记念胡新宇君Q?br /><br />Jacky后感Q在我们好似风光的同Ӟ我们实为此付出?jin)生命的代h(hun)。不是我们想要如此的l果Q是C会(x)Q是业界风气Q是苦后不思苦的BOSS们,逼得我们Q无法选择。社?x)本来就很?hu)酗当我们Q用自己的生命换来那一叠叠钞票的时候,我们是否q有气L受?<img src ="http://www.tkk7.com/jackyhuang/aggbug/48979.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/jackyhuang/" target="_blank">jackyhuang</a> 2006-05-30 14:22 <a href="http://www.tkk7.com/jackyhuang/archive/2006/05/30/48979.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>梦境家园http://www.tkk7.com/jackyhuang/archive/2006/05/24/47888.htmljackyhuangjackyhuangWed, 24 May 2006 12:41:00 GMThttp://www.tkk7.com/jackyhuang/archive/2006/05/24/47888.htmlhttp://www.tkk7.com/jackyhuang/comments/47888.htmlhttp://www.tkk7.com/jackyhuang/archive/2006/05/24/47888.html#Feedback0http://www.tkk7.com/jackyhuang/comments/commentRss/47888.htmlhttp://www.tkk7.com/jackyhuang/services/trackbacks/47888.htmlwww.1001m.com
一个虚拟世?UFlash?.5DC֌.











jackyhuang 2006-05-24 20:41 发表评论
]]>
Hessian 使用注意事项http://www.tkk7.com/jackyhuang/archive/2006/05/23/47581.htmljackyhuangjackyhuangTue, 23 May 2006 01:48:00 GMThttp://www.tkk7.com/jackyhuang/archive/2006/05/23/47581.htmlhttp://www.tkk7.com/jackyhuang/comments/47581.htmlhttp://www.tkk7.com/jackyhuang/archive/2006/05/23/47581.html#Feedback0http://www.tkk7.com/jackyhuang/comments/commentRss/47581.htmlhttp://www.tkk7.com/jackyhuang/services/trackbacks/47581.htmlpublic String getABC(int aId,int bId);
public String getABC(int aId,String bName);

其他cd的重载,期待你去试?jin)。?img src ="http://www.tkk7.com/jackyhuang/aggbug/47581.html" width = "1" height = "1" />

jackyhuang 2006-05-23 09:48 发表评论
]]>
axis入门之代码篇Q?Q?/title><link>http://www.tkk7.com/jackyhuang/archive/2006/04/29/44051.html</link><dc:creator>jackyhuang</dc:creator><author>jackyhuang</author><pubDate>Sat, 29 Apr 2006 10:02:00 GMT</pubDate><guid>http://www.tkk7.com/jackyhuang/archive/2006/04/29/44051.html</guid><wfw:comment>http://www.tkk7.com/jackyhuang/comments/44051.html</wfw:comment><comments>http://www.tkk7.com/jackyhuang/archive/2006/04/29/44051.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.tkk7.com/jackyhuang/comments/commentRss/44051.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/jackyhuang/services/trackbacks/44051.html</trackback:ping><description><![CDATA[jacky?006q州<br /><br />配置好了(jin)环境Q我们就可以q行~码?jin)?br />一Q 建立一个普通的javacd我们的server<br /><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"><span style="COLOR: #008080">1</span><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #0000ff">package</span><span style="COLOR: #000000"> (tng)com.test.service;<br /></span><span style="COLOR: #008080">2</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /></span><span style="COLOR: #008080">3</span><span style="COLOR: #000000"><img id="Codehighlighter1_51_146_Open_Image" onclick="this.style.display='none'; Codehighlighter1_51_146_Open_Text.style.display='none'; Codehighlighter1_51_146_Closed_Image.style.display='inline'; Codehighlighter1_51_146_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_51_146_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_51_146_Closed_Text.style.display='none'; Codehighlighter1_51_146_Open_Image.style.display='inline'; Codehighlighter1_51_146_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /></span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000"> (tng)</span><span style="COLOR: #0000ff">class</span><span style="COLOR: #000000"> (tng)TestServer (tng)</span><span id="Codehighlighter1_51_146_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_51_146_Open_Text"><span style="COLOR: #000000">{<br /></span><span style="COLOR: #008080">4</span><span style="COLOR: #000000"><img id="Codehighlighter1_84_144_Open_Image" onclick="this.style.display='none'; Codehighlighter1_84_144_Open_Text.style.display='none'; Codehighlighter1_84_144_Closed_Image.style.display='inline'; Codehighlighter1_84_144_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_84_144_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_84_144_Closed_Text.style.display='none'; Codehighlighter1_84_144_Open_Image.style.display='inline'; Codehighlighter1_84_144_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" /> (tng)</span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000"> (tng)String (tng)say(String (tng)arg) (tng)</span><span id="Codehighlighter1_84_144_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_84_144_Open_Text"><span style="COLOR: #000000">{<br /></span><span style="COLOR: #008080">5</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)System.out.println(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">some (tng)one (tng)call (tng)me!</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">);<br /></span><span style="COLOR: #008080">6</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000"> (tng)arg;<br /></span><span style="COLOR: #008080">7</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" /> (tng) (tng) (tng) (tng)}</span></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">8</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span></span></div>q个cd义一个say()的方法提供给客户端调用,q回cd是StringQ?br />ok,q个cL最单不q了(jin)Q?br />下面建立我们的部|文?WEB-INF/server-config.wsdd<br /><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"><span style="COLOR: #008080"> (tng)1</span><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #0000ff"><?</span><span style="COLOR: #ff00ff">xml (tng)version="1.0" (tng)encoding="UTF-8"</span><span style="COLOR: #0000ff">?></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080"> (tng)2</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">deployment (tng)</span><span style="COLOR: #ff0000">xmlns</span><span style="COLOR: #0000ff">="http://xml.apache.org/axis/wsdd/"</span><span style="COLOR: #ff0000"> (tng)xmlns:java</span><span style="COLOR: #0000ff">="http://xml.apache.org/axis/wsdd/providers/java"</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080"> (tng)3</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">globalConfiguration</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080"> (tng)4</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">parameter (tng)</span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="adminPassword"</span><span style="COLOR: #ff0000"> (tng)value</span><span style="COLOR: #0000ff">="admin"</span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080"> (tng)5</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">parameter (tng)</span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="attachments.Directory"</span><span style="COLOR: #ff0000"> (tng)value</span><span style="COLOR: #0000ff">="C:\eclipse\workspace\bookstore\WEB-INF\attachments"</span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080"> (tng)6</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">parameter (tng)</span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="attachments.implementation"</span><span style="COLOR: #ff0000"> (tng)value</span><span style="COLOR: #0000ff">="org.apache.axis.attachments.AttachmentsImpl"</span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080"> (tng)7</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">parameter (tng)</span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="sendXsiTypes"</span><span style="COLOR: #ff0000"> (tng)value</span><span style="COLOR: #0000ff">="true"</span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080"> (tng)8</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">parameter (tng)</span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="sendMultiRefs"</span><span style="COLOR: #ff0000"> (tng)value</span><span style="COLOR: #0000ff">="true"</span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080"> (tng)9</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">parameter (tng)</span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="sendXMLDeclaration"</span><span style="COLOR: #ff0000"> (tng)value</span><span style="COLOR: #0000ff">="true"</span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">10</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">parameter (tng)</span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="axis.sendMinimizedElements"</span><span style="COLOR: #ff0000"> (tng)value</span><span style="COLOR: #0000ff">="true"</span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">11</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">requestFlow</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">12</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">handler (tng)</span><span style="COLOR: #ff0000">type</span><span style="COLOR: #0000ff">="java:org.apache.axis.handlers.JWSHandler"</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">13</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">parameter (tng)</span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="scope"</span><span style="COLOR: #ff0000"> (tng)value</span><span style="COLOR: #0000ff">="session"</span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">14</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng)</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">handler</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">15</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">handler (tng)</span><span style="COLOR: #ff0000">type</span><span style="COLOR: #0000ff">="java:org.apache.axis.handlers.JWSHandler"</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">16</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">parameter (tng)</span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="scope"</span><span style="COLOR: #ff0000"> (tng)value</span><span style="COLOR: #0000ff">="request"</span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">17</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">parameter (tng)</span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="extension"</span><span style="COLOR: #ff0000"> (tng)value</span><span style="COLOR: #0000ff">=".jwr"</span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">18</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng)</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">handler</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">19</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng)</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">requestFlow</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">20</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng)</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">globalConfiguration</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">21</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">handler (tng)</span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="LocalResponder"</span><span style="COLOR: #ff0000"> (tng)type</span><span style="COLOR: #0000ff">="java:org.apache.axis.transport.local.LocalResponder"</span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">22</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">handler (tng)</span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="Authenticate"</span><span style="COLOR: #ff0000"> (tng)type</span><span style="COLOR: #0000ff">="java:org.apache.axis.handlers.SimpleAuthenticationHandler"</span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">23</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">handler (tng)</span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="URLMapper"</span><span style="COLOR: #ff0000"> (tng)type</span><span style="COLOR: #0000ff">="java:org.apache.axis.handlers.http.URLMapper"</span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">24</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">service (tng)</span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="Version"</span><span style="COLOR: #ff0000"> (tng)provider</span><span style="COLOR: #0000ff">="java:RPC"</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">25</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">parameter (tng)</span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="allowedMethods"</span><span style="COLOR: #ff0000"> (tng)value</span><span style="COLOR: #0000ff">="getVersion"</span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">26</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">parameter (tng)</span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="className"</span><span style="COLOR: #ff0000"> (tng)value</span><span style="COLOR: #0000ff">="org.apache.axis.Version"</span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">27</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng)</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">service</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">28</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">service (tng)</span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="TestServer"</span><span style="COLOR: #ff0000"> (tng)provider</span><span style="COLOR: #0000ff">="java:RPC"</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">29</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">parameter (tng)</span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="className"</span><span style="COLOR: #ff0000"> (tng)value</span><span style="COLOR: #0000ff">="com.test.service.TestServer"</span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">30</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">parameter (tng)</span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="allowedMethods"</span><span style="COLOR: #ff0000"> (tng)value</span><span style="COLOR: #0000ff">="*"</span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">31</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng)<br /></span><span style="COLOR: #008080">32</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng)</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">service</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">33</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">service (tng)</span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="AdminService"</span><span style="COLOR: #ff0000"> (tng)provider</span><span style="COLOR: #0000ff">="java:MSG"</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">34</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">parameter (tng)</span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="allowedMethods"</span><span style="COLOR: #ff0000"> (tng)value</span><span style="COLOR: #0000ff">="AdminService"</span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">35</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">parameter (tng)</span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="enableRemoteAdmin"</span><span style="COLOR: #ff0000"> (tng)value</span><span style="COLOR: #0000ff">="false"</span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">36</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">parameter (tng)</span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="className"</span><span style="COLOR: #ff0000"> (tng)value</span><span style="COLOR: #0000ff">="org.apache.axis.utils.Admin"</span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">37</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">namespace</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000">http://xml.apache.org/axis/wsdd/</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">namespace</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">38</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng)</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">service</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">39</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">transport (tng)</span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="local"</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">40</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">responseFlow</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">41</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">handler (tng)</span><span style="COLOR: #ff0000">type</span><span style="COLOR: #0000ff">="LocalResponder"</span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">42</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng)</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">responseFlow</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">43</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng)</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">transport</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">44</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">transport (tng)</span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="http"</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">45</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">requestFlow</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">46</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">handler (tng)</span><span style="COLOR: #ff0000">type</span><span style="COLOR: #0000ff">="URLMapper"</span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">47</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">handler (tng)</span><span style="COLOR: #ff0000">type</span><span style="COLOR: #0000ff">="java:org.apache.axis.handlers.http.HTTPAuthHandler"</span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">48</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng)</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">requestFlow</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">49</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng)</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">transport</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">50</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng)<br /></span><span style="COLOR: #008080">51</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /></span><span style="COLOR: #008080">52</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">deployment</span><span style="COLOR: #0000ff">></span></div><br />初看一下,有点复杂Q我们先不管其中具体的配|是什么作用,看一下我们关注的Q?br /><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"><span style="COLOR: #008080">1</span><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">service (tng)</span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="TestServer"</span><span style="COLOR: #ff0000"> (tng)provider</span><span style="COLOR: #0000ff">="java:RPC"</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">2</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">parameter (tng)</span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="className"</span><span style="COLOR: #ff0000"> (tng)value</span><span style="COLOR: #0000ff">="com.test.service.TestServer"</span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">3</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">parameter (tng)</span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="allowedMethods"</span><span style="COLOR: #ff0000"> (tng)value</span><span style="COLOR: #0000ff">="*"</span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"> (tng) (tng)<br /></span><span style="COLOR: #008080">4</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng)</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">service</span><span style="COLOR: #0000ff">></span></div>q一D就是我们配|的serviceQname是我们给服务L(fng)名称Q下来的className是我们写的cȝ路径Q再往下就是允许调用的Ҏ(gu)Q这里是为全部.<br />不算复杂吧!<br />现在Q可以启动你的web服务器来看看建立的服务是否成功了(jin)Q?br />看一下我们在web.xml里配|的q么一D:(x)<br /><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"><span style="COLOR: #008080">1</span><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">servlet-mapping</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">2</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">servlet-name</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000">AxisServlet</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">servlet-name</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">3</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">url-pattern</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000">/services/*</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">url-pattern</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">4</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">servlet-mapping</span><span style="COLOR: #0000ff">></span></div>知道什么意思了(jin)吗,是?services/h的地址都是我们的serviceQ?br />从浏览器中浏览:(x)<br /><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.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #000000">http://localhost/WebService/services/</span></div>会(x)昄你现在所有的服务Q那么表C我们徏立的服务已经成功Q?br />那下面就写一个客L(fng)代码调用我们的service.<br /><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"><span style="COLOR: #008080"> (tng)1</span><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #000000"> (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000"> (tng)</span><span style="COLOR: #0000ff">static</span><span style="COLOR: #000000"> (tng)</span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000"> (tng)main(String (tng)[] (tng)args)<br /></span><span style="COLOR: #008080"> (tng)2</span><span style="COLOR: #000000"><img id="Codehighlighter1_47_1223_Open_Image" onclick="this.style.display='none'; Codehighlighter1_47_1223_Open_Text.style.display='none'; Codehighlighter1_47_1223_Closed_Image.style.display='inline'; Codehighlighter1_47_1223_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_47_1223_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_47_1223_Closed_Text.style.display='none'; Codehighlighter1_47_1223_Open_Image.style.display='inline'; Codehighlighter1_47_1223_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span><span id="Codehighlighter1_47_1223_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_47_1223_Open_Text"><span style="COLOR: #000000">{<br /></span><span style="COLOR: #008080"> (tng)3</span><span style="COLOR: #000000"><img id="Codehighlighter1_62_1136_Open_Image" onclick="this.style.display='none'; Codehighlighter1_62_1136_Open_Text.style.display='none'; Codehighlighter1_62_1136_Closed_Image.style.display='inline'; Codehighlighter1_62_1136_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_62_1136_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_62_1136_Closed_Text.style.display='none'; Codehighlighter1_62_1136_Open_Image.style.display='inline'; Codehighlighter1_62_1136_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff">try</span><span style="COLOR: #000000"> (tng)</span><span id="Codehighlighter1_62_1136_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_62_1136_Open_Text"><span style="COLOR: #000000">{<br /></span><span style="COLOR: #008080"> (tng)4</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)Options (tng)options (tng)</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> (tng)</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000"> (tng)Options(args);<br /></span><span style="COLOR: #008080"> (tng)5</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)<br /></span><span style="COLOR: #008080"> (tng)6</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)String (tng)endpointURL (tng)</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> (tng)</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">http://localhost/WebService/services/TestServer</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">;</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">options.getURL();</span><span style="COLOR: #008000"><br /></span><span style="COLOR: #008080"> (tng)7</span><span style="COLOR: #008000"><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /></span><span style="COLOR: #000000"> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)String (tng)textToSend;<br /></span><span style="COLOR: #008080"> (tng)8</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)<br /></span><span style="COLOR: #008080"> (tng)9</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)args (tng)</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> (tng)options.getRemainingArgs();<br /></span><span style="COLOR: #008080">10</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)<br /></span><span style="COLOR: #008080">11</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)textToSend (tng)</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> (tng)</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">哈哈</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">;</span><span style="COLOR: #008000"><br /></span><span style="COLOR: #008080">12</span><span style="COLOR: #008000"><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /></span><span style="COLOR: #000000"> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)<br /></span><span style="COLOR: #008080">13</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)Service (tng) (tng)service (tng)</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> (tng)</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000"> (tng)Service();<br /></span><span style="COLOR: #008080">14</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)Call (tng)call (tng) (tng)</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> (tng)(Call) (tng)service.createCall();<br /></span><span style="COLOR: #008080">15</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)<br /></span><span style="COLOR: #008080">16</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)call.setTargetEndpointAddress( (tng)</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000"> (tng)java.net.URL(endpointURL) (tng));<br /></span><span style="COLOR: #008080">17</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)<br /></span><span style="COLOR: #008080">18</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">W一个参数是包名Q也是包名的倒叙Q可有可无,因ؓ(f)上面的endpointURL已经指定?jin)类Q,后面是方法名</span><span style="COLOR: #008000"><br /></span><span style="COLOR: #008080">19</span><span style="COLOR: #008000"><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /></span><span style="COLOR: #000000"> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)QName (tng)q (tng)</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> (tng)</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000"> (tng)QName(</span><span style="COLOR: #000000">""</span><span style="COLOR: #000000">, (tng)</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">say</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">);<br /></span><span style="COLOR: #008080">20</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)call.setOperationName( (tng)q (tng));<br /></span><span style="COLOR: #008080">21</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)call.addParameter( (tng)</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">arg1</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">, (tng)XMLType.XSD_STRING, (tng)ParameterMode.IN);</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">传参?/span><span style="COLOR: #008000"><br /></span><span style="COLOR: #008080">22</span><span style="COLOR: #008000"><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /></span><span style="COLOR: #000000"> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)call.setReturnType( (tng)XMLType.QNAME_FAULTACTOR);</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">讑֮q回参数</span><span style="COLOR: #008000"><br /></span><span style="COLOR: #008080">23</span><span style="COLOR: #008000"><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">24</span><span style="COLOR: #000000"><img id="Codehighlighter1_968_981_Open_Image" onclick="this.style.display='none'; Codehighlighter1_968_981_Open_Text.style.display='none'; Codehighlighter1_968_981_Closed_Image.style.display='inline'; Codehighlighter1_968_981_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_968_981_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_968_981_Closed_Text.style.display='none'; Codehighlighter1_968_981_Open_Image.style.display='inline'; Codehighlighter1_968_981_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)String (tng)ret (tng)</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> (tng)(String) (tng)call.invoke( (tng)</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000"> (tng)Object[] (tng)</span><span id="Codehighlighter1_968_981_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_968_981_Open_Text"><span style="COLOR: #000000">{ (tng)textToSend (tng)}</span></span><span style="COLOR: #000000"> (tng));<br /></span><span style="COLOR: #008080">25</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #008000"><br /></span><span style="COLOR: #008080">26</span><span style="COLOR: #008000"><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /></span><span style="COLOR: #000000"> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)System.out.println(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">q回的东西? (tng)</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"> (tng)</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000"> (tng)ret (tng));<br /></span><span style="COLOR: #008080">27</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)<br /></span><span style="COLOR: #008080">28</span><span style="COLOR: #000000"><img id="Codehighlighter1_1158_1216_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1158_1216_Open_Text.style.display='none'; Codehighlighter1_1158_1216_Closed_Image.style.display='inline'; Codehighlighter1_1158_1216_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_1158_1216_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1158_1216_Closed_Text.style.display='none'; Codehighlighter1_1158_1216_Open_Image.style.display='inline'; Codehighlighter1_1158_1216_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)}</span></span><span style="COLOR: #000000"> (tng)</span><span style="COLOR: #0000ff">catch</span><span style="COLOR: #000000"> (tng)(Exception (tng)e) (tng)</span><span id="Codehighlighter1_1158_1216_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_1158_1216_Open_Text"><span style="COLOR: #000000">{<br /></span><span style="COLOR: #008080">29</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)System.err.println(e.toString());<br /></span><span style="COLOR: #008080">30</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)}</span></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">31</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)}</span></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">32</span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />}</span></div>在你的web服务器还跑的时候,q行上面的代码.自己看看l果吧.<br />easy?<img src ="http://www.tkk7.com/jackyhuang/aggbug/44051.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/jackyhuang/" target="_blank">jackyhuang</a> 2006-04-29 18:02 <a href="http://www.tkk7.com/jackyhuang/archive/2006/04/29/44051.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>axis入门之配|篇http://www.tkk7.com/jackyhuang/archive/2006/04/29/44046.htmljackyhuangjackyhuangSat, 29 Apr 2006 09:40:00 GMThttp://www.tkk7.com/jackyhuang/archive/2006/04/29/44046.htmlhttp://www.tkk7.com/jackyhuang/comments/44046.htmlhttp://www.tkk7.com/jackyhuang/archive/2006/04/29/44046.html#Feedback1http://www.tkk7.com/jackyhuang/comments/commentRss/44046.htmlhttp://www.tkk7.com/jackyhuang/services/trackbacks/44046.htmljacky?006q州
一 首先Q你需要去官方下蝲相关的jarQ?br />包含的jar有:(x)

axis.jar
axis-ant.jar
axis-schema.jar
commons-discovery-
0.2 .jar
commons-logging-
1.0.4 .jar
jaxrpc.jar
log4j-
1.2.8 .jar
saaj.jar
wsdl4j-
1.5.1 .jar


二 在Eclipse中徏立一个Web工程QWebService
 (tng)把上面的jar攑ֈWEB-INF/lib/文g夹中Q?br />配置web.xml文g如下Q?br />

 (tng)1 <? xml (tng)version="1.0" (tng)encoding="UTF-8" ?>
 (tng)2 < web-app (tng) version ="2.4"  (tng)
 (tng)3  (tng) (tng) (tng) (tng)xmlns ="http://java.sun.com/xml/ns/j2ee"  (tng)
 (tng)4  (tng) (tng) (tng) (tng)xmlns:xsi ="http://www.w3.org/2001/XMLSchema-instance"  (tng)
 (tng)5  (tng) (tng) (tng) (tng)xsi:schemaLocation ="http://java.sun.com/xml/ns/j2ee (tng)
 (tng)6  (tng) (tng) (tng) (tng)http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" >
 (tng)7 < display-name > Apache-Axis </ display-name >
 (tng)8
 (tng)9  (tng) (tng) (tng) (tng) < listener >
10  (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) < listener-class > org.apache.axis.transport.http.AxisHTTPSessionListener </ listener-class >
11  (tng) (tng) (tng) (tng) </ listener >
12
13  (tng) (tng) (tng) (tng) < servlet >
14  (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) < display-name > Apache-Axis (tng)Servlet </ display-name >
15  (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) < servlet-name > AxisServlet </ servlet-name >
16  (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) < servlet-class > org.apache.axis.transport.http.AxisServlet </ servlet-class >
17  (tng) (tng) (tng) (tng) </ servlet >
18
19  (tng) (tng) (tng) (tng) < servlet >
20  (tng) (tng) (tng) (tng) < display-name > Axis (tng)Admin (tng)Servlet </ display-name >
21  (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) < servlet-name > AdminServlet </ servlet-name >
22  (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) < servlet-class > org.apache.axis.transport.http.AdminServlet </ servlet-class >
23  (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) < load-on-startup > 100 </ load-on-startup >
24  (tng) (tng) (tng) (tng) </ servlet >
25
26  (tng) (tng) (tng) (tng) < servlet >
27  (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) < display-name > SOAPMonitorService </ display-name >
28  (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) < servlet-name > SOAPMonitorService </ servlet-name >
29  (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) < servlet-class > org.apache.axis.monitor.SOAPMonitorService </ servlet-class >
30  (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) < init-param >
31  (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) < param-name > SOAPMonitorPort </ param-name >
32  (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) < param-value > 5001 </ param-value >
33  (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) </ init-param >
34  (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) < load-on-startup > 100 </ load-on-startup >
35  (tng) (tng) (tng) (tng) </ servlet >
36 <!--  (tng)
37  (tng) (tng) (tng) (tng)<servlet-mapping>
38  (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)<servlet-name>AxisServlet</servlet-name>
39  (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)<url-pattern>/servlet/AxisServlet</url-pattern>
40  (tng) (tng) (tng) (tng)</servlet-mapping>
41
42  (tng) (tng) (tng) (tng)<servlet-mapping>
43  (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)<servlet-name>AxisServlet</servlet-name>
44  (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)<url-pattern>*.jws</url-pattern>
45  (tng) (tng) (tng) (tng)</servlet-mapping>
46 -->
47  (tng) (tng) (tng) (tng) < servlet-mapping >
48  (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) < servlet-name > AxisServlet </ servlet-name >
49  (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) < url-pattern > /services/* </ url-pattern >
50  (tng) (tng) (tng) (tng) </ servlet-mapping >
51
52  (tng) (tng) (tng) (tng) < servlet-mapping >
53  (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) < servlet-name > SOAPMonitorService </ servlet-name >
54  (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) < url-pattern > /SOAPMonitor </ url-pattern >
55  (tng) (tng) (tng) (tng) </ servlet-mapping >
56
57  (tng) (tng) (tng) (tng) <!--  (tng)uncomment (tng)this (tng)if (tng)you (tng)want (tng)the (tng)admin (tng)servlet (tng) -->
58  (tng) (tng) (tng) (tng) <!--
59  (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)<servlet-mapping>
60  (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)<servlet-name>AdminServlet</servlet-name>
61  (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)<url-pattern>/servlet/AdminServlet</url-pattern>
62  (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</servlet-mapping>
63  (tng) (tng) (tng) (tng) -->
64
65  (tng) (tng) (tng) (tng) < session-config >
66  (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) <!--  (tng)Default (tng)to (tng)5 (tng)minute (tng)session (tng)timeouts (tng) -->
67  (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) < session-timeout > 5 </ session-timeout >
68  (tng) (tng) (tng) (tng) </ session-config >
69
70  (tng) (tng) (tng) (tng) <!--  (tng)currently (tng)the (tng)W3C (tng)havent (tng)settled (tng)on (tng)a (tng)media (tng)type (tng)for (tng)WSDL;
71  (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)http://www.w3.org/TR/2003/WD-wsdl12-20030303/#ietf-draft
72  (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)for (tng)now (tng)we (tng)go (tng)with (tng)the (tng)basic (tng)'it's (tng)XML' (tng)response (tng) -->
73  (tng) (tng) (tng) (tng) < mime-mapping >
74  (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) < extension > wsdl </ extension >
75  (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) < mime-type > text/xml </ mime-type >
76  (tng) (tng) (tng) (tng) </ mime-mapping >
77
78
79  (tng) (tng) (tng) (tng) < mime-mapping >
80  (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) < extension > xsd </ extension >
81  (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) < mime-type > text/xml </ mime-type >
82  (tng) (tng) (tng) (tng) </ mime-mapping >
83
84  (tng) (tng) (tng) (tng) < welcome-file-list (tng) id ="WelcomeFileList" >
85  (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) < welcome-file > index.jsp </ welcome-file >
86  (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) < welcome-file > index.html </ welcome-file >
87  (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) < welcome-file > index.jws </ welcome-file >
88  (tng) (tng) (tng) (tng) </ welcome-file-list >
89 </ web-app >

q个代码你可以从官方下蝲的示例包中得刎ͼ也可以直接copy我的代码Q?br />q样Q一个axis的环境已l徏立v来.在下面的章中.我们徏立我们的W一个例?img src ="http://www.tkk7.com/jackyhuang/aggbug/44046.html" width = "1" height = "1" />

jackyhuang 2006-04-29 17:40 发表评论
]]>
axis入门之前奏http://www.tkk7.com/jackyhuang/archive/2006/04/29/43900.htmljackyhuangjackyhuangFri, 28 Apr 2006 16:29:00 GMThttp://www.tkk7.com/jackyhuang/archive/2006/04/29/43900.htmlhttp://www.tkk7.com/jackyhuang/comments/43900.htmlhttp://www.tkk7.com/jackyhuang/archive/2006/04/29/43900.html#Feedback1http://www.tkk7.com/jackyhuang/comments/commentRss/43900.htmlhttp://www.tkk7.com/jackyhuang/services/trackbacks/43900.html最q做新的设计要求需要用到WebService?br />原来只接触过hessianq种轻量U框Ӟ它不是居于SAOP协议Q而是自己实现的基于二q制的传输方式。所以只适用于java与java的通讯?br />重量U的有apache下面的axis技术框架?br />搜烦(ch)|络上相关中文文,发现只是几篇重复的文字(现在|络抄袭现在是很严重Q包括那些bloger们,引用别h的文字也不说明一下,好像是自己写的一P不羞dQ?br />只好自己ȝ它的e文文。文写的很z,同时源码里也有几个入门的例子?br />参考它的例子,我做?jin)几个自己写的例子,打算贴出来和java友们一起分享一下?br />例子包括Q?br />q回cd为基本类型的function调用Q?br />q回cd定义javaBean的调用;
试?jin)返回类型是List或者Map的情c(din)?br />

jackyhuang 2006-04-29 00:29 发表评论
]]>
OsCache配置http://www.tkk7.com/jackyhuang/archive/2006/04/29/43899.htmljackyhuangjackyhuangFri, 28 Apr 2006 16:06:00 GMThttp://www.tkk7.com/jackyhuang/archive/2006/04/29/43899.htmlhttp://www.tkk7.com/jackyhuang/comments/43899.htmlhttp://www.tkk7.com/jackyhuang/archive/2006/04/29/43899.html#Feedback4http://www.tkk7.com/jackyhuang/comments/commentRss/43899.htmlhttp://www.tkk7.com/jackyhuang/services/trackbacks/43899.html׃(jin)一Ҏ(gu)_(d)译?jin)OsCache的配|属性:(x)
E文地址Qhttp://wiki.opensymphony.com/display/CACHE/Configuration
z翻译如下:(x)后面部分懒得ȝ译了(jin)...哈哈
Configuration:配置oscache.properties
1、cache.memoryQ?
true 或?false。默认ؓ(f)true
不用内存缓存而用硬盘缓存是很愚蠢的事情?
2、cache.capacity
~存object的最大数量倹{默认是不限Ӟcache不会(x)U走M~存内容。负数被当作不限制?
3、cache.algorithm
q算规则。ؓ(f)?jin)用规则,cache的size必须是指定的?
如果cache的size不指定的话,法则不?x)限制缓存对象的大小?
如果你指定了(jin)cache的sizeQ但不指定algorithmQ那它会(x)默认使用:com.opensymphony.oscache.base.algorithm.LRUCache
有下面三U规则:(x)
com.opensymphony.oscache.base.algorithm.LRUCacheQlast in first out,最q插入的最先调用。默认倹{?
com.opensymphony.oscache.base.algorithm.FIFOCache Qfirst int first out?
com.opensymphony.oscache.base.algorithm.UnlimitedCache Qcache中的内容永q不?x)被丢弃?
如果cache.capacity不指定值的话,它将被设为默认?
4、cache.blocking
是否同步化。true 或?false。一般设为trueQ避免读取脏数据?
5。cache.unlimited.disk
指定盘~存是否要作限制。默认gؓ(f)false。false的状况下Qdisk cache capacity 和cache.capacity的值相同?
6、cache.persistence.class
指定cL被持久化的类。class必须实现PersistenceListener接口?
作ؓ(f)盘持久Q可以实现com.opensymphony.oscache.plugins.diskpersistence.HashDiskPersistenceListener接口?
它把class的toString()输出的hashg为文件的名称。如果你要把文g名易读(自己讑֮Q,DiskPersistenceListener 的父cM
能用,但其可能有非法字W或者过长的名字?
注意QHashDiskPersistenceListener ?DiskPersistenceListener 需要设定硬盘\径:(x)cache.path
7、cache.path
指定盘~存的\径。目录如果不存在被建立。同时注意oscache应该要有权限写文件系l?
cache.path=c:\\myapp\\cache
or *ix:
cache.path=/opt/myapp/cache
8、cache.persistence.overflow.only (NEW! Since 2.1)
指定是否只有在内存(sh)的情况下才使用盘~存?
默认值false。但推荐是true如果内存cache被允许的话。这个属性彻底的改变?sh)(jin)cache的行为,使得persisted cache
和memory完全不同?
9、cache.event.listeners
用逗号分离的class名列表。每个class必须实现以下接口之一Q或者几?
CacheEntryEventListenerQ接收cache add/update/flush and remove事g
CacheMapAccessEventListener Q接收cache讉K事g。这个可以让你跟tcache怎么工作?
默认是不配置Mclass的。当然你可以使用一下的classQ?
com.opensymphony.oscache.plugins.clustersupport.BroadcastingCacheEventListener Q分布式的监听器。可以广播到局域网内的其他cache实例?
com.opensymphony.oscache.extra.CacheEntryEventListenerImpl Q一个简单的监听器。在cache的生命周期中记录count of 所有entry的事件?
com.opensymphony.oscache.extra.CacheMapAccessEventListenerImpl Q记录count of cache map eventsQcache hitsQmisses and state hitsQ?
10、cache.key
This is the key that will be used by the ServletCacheAdministrator
(and hence the custom tags) to store the cache object in the application and session scope.
The default value when this property is not specified is "__oscache_cache". If you want to access this default value in your code, it is available as com.opensymphony.oscache.base.Const.DEFAULT_CACHE_KEY.
11、cache.use.host.domain.in.key
If your server is configured with multiple hosts, you may wish to add host name information to automatically generated cache keys. If so, set this property to true. The default value is false.
12、Additional Properties
In additon to the above basic options, any other properties that are specified in this file will still be loaded and can be made available to your event handlers. For example, the JavaGroupsBroadcastingListener supports the following additional properties:
13、cache.cluster.multicast.ip
The multicast IP to use for this cache cluster. Defaults to 231.12.21.132.
14、cache.cluster.properties
Specifies additional configuration options for the clustering. The default setting is

UDP(mcast_addr=231.12.21.132;mcast_port=45566;ip_ttl=32;\
mcast_send_buf_size=150000;mcast_recv_buf_size=80000):\
PING(timeout=2000;num_initial_members=3):\
MERGE2(min_interval=5000;max_interval=10000):\
FD_SOCK:VERIFY_SUSPECT(timeout=1500):\
pbcast.NAKACK(gc_lag=50;retransmit_timeout=300,600,1200,2400,4800;max_xmit_size=8192):\
UNICAST(timeout=300,600,1200,2400):\
pbcast.STABLE(desired_avg_gossip=20000):\
FRAG(frag_size=8096;down_thread=false;up_thread=false):\
pbcast.GMS(join_timeout=5000;join_retry_timeout=2000;shun=false;print_local_addr=true)


jackyhuang 2006-04-29 00:06 发表评论
]]>
վ֩ģ壺 ޾ƷƵۿ| aƵƵ| ˾޾ƷӰwww| 뾫Ʒþþþ..| ŷ޹Ʒ㶮| ɫͼɫС˵| йchina[ձ| ձһ߲Ͷ߲Ա| AžƷһ| ˳ɴƬ߹ۿŵӰ| ĻѹۿƵ| 91ѸƷ| ëƬƵ| ͼƬ| avַ߹ۿ| ޽Сxxxx| ̱߳ˬƵվ| һѹۿ| AV| ˾þۺ| Ʒպһ| Ʒa߹ۿ| ޳ɫӰԺ| ޿һ| ձ߿ѹۿ| ձ| 쿴Ƭˬ_Ѳ| ձ| ŷղwww| AVר벻| ձ߹ۿ1 ˵Ƶwww | JIZZJIZZйٸ| ޾ƷƵ| 97se޹ۺ | ۺϾƷ˾þ| һ| 4455߹ѿ| ĻƵ| ޹ۺ| һëƬ߲ŷƵ | ĻӰѿ|