??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲日韩精品无码AV海量,亚洲综合AV在线在线播放,夜夜春亚洲嫩草影院http://www.tkk7.com/vip01/category/18978.html单实?---逻辑清楚zh-cnWed, 21 May 2008 17:15:39 GMTWed, 21 May 2008 17:15:39 GMT60史上最z的XML2BEAN和BEAN2XMLhttp://www.tkk7.com/vip01/archive/2008/05/21/201822.html交口U赞交口U赞Wed, 21 May 2008 01:30:00 GMThttp://www.tkk7.com/vip01/archive/2008/05/21/201822.htmlhttp://www.tkk7.com/vip01/comments/201822.htmlhttp://www.tkk7.com/vip01/archive/2008/05/21/201822.html#Feedback0http://www.tkk7.com/vip01/comments/commentRss/201822.htmlhttp://www.tkk7.com/vip01/services/trackbacks/201822.html 引入xstream?br />
 

XML2Bean

XStream xStreamt 
=   new  XStream( new  DomDriver());

xStreamt.alias(
" config " , ConnectConfig. class ); // 指定节点对应的class

ConnectConfig cfgt 
=  (ConnectConfig) xStreamt.fromXML(str); // str是接收到的xml字符Ԍ注意Qxml里面的节点和bean的属性一定要能对应上Q否则会(x)抛异?/span>

System.out.println(cfgt.getAdminEmail());

 

 

 

Bean2XML

XStream xStream 
=   new  XStream( new  DomDriver());

xStream.alias(
" config " , ConnectConfig. class ); // 指定class对应的节点名Uͼ默认是完整package名称Qclass名称

String str 
=  xStream.toXML(cfg); // str为生成的xmlQgؓ(f)I的属性不生成节点?/span>

System.out.println(str);



交U赞 2008-05-21 09:30 发表评论
]]>
Log4j按别输出日志到不同的文?/title><link>http://www.tkk7.com/vip01/archive/2008/05/21/201819.html</link><dc:creator>交口U赞</dc:creator><author>交U赞</author><pubDate>Wed, 21 May 2008 01:26:00 GMT</pubDate><guid>http://www.tkk7.com/vip01/archive/2008/05/21/201819.html</guid><wfw:comment>http://www.tkk7.com/vip01/comments/201819.html</wfw:comment><comments>http://www.tkk7.com/vip01/archive/2008/05/21/201819.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/vip01/comments/commentRss/201819.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/vip01/services/trackbacks/201819.html</trackback:ping><description><![CDATA[ <p>?x)按日存分割日志文gQƈ且根据别输出到不同的文?/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"> <span style="COLOR: #000000">log4j.rootLogger=info,stdout,info,debug,error<br />log4j.appender.stdout=org.apache.log4j.ConsoleAppender<br />log4j.appender.stdout.layout=org.apache.log4j.PatternLayout<br />log4j.appender.stdout.layout.ConversionPattern=[%-5p] [%d{HH:mm:ss}] %c - %m%n<br /> <br />log4j.logger.info=info<br />log4j.appender.info=org.apache.log4j.DailyRollingFileAppender<br />log4j.appender.info.layout=org.apache.log4j.PatternLayout<br />log4j.appender.info.layout.ConversionPattern=[%-5p] [%d{HH:mm:ss}] %c - %m%n<br />log4j.appender.info.datePattern='.'yyyy-MM-dd<br />log4j.appender.info.Threshold = INFO <br />log4j.appender.info.append=true<br />log4j.appender.info.File=${webApp.root}/WEB-INF/logs/info.log<br /> <br />log4j.logger.debug=debug<br />log4j.appender.debug=org.apache.log4j.DailyRollingFileAppender<br />log4j.appender.debug.layout=org.apache.log4j.PatternLayout<br />log4j.appender.debug.layout.ConversionPattern=[%-5p] [%d{HH:mm:ss}] %c - %m%n<br />log4j.appender.debug.datePattern='.'yyyy-MM-dd<br />log4j.appender.debug.Threshold = DEBUG <br />log4j.appender.debug.append=true<br />log4j.appender.debug.File=${webApp.root}/WEB-INF/logs/debug.log<br /><br />log4j.logger.error=error<br />log4j.appender.error=org.apache.log4j.DailyRollingFileAppender<br />log4j.appender.error.layout=org.apache.log4j.PatternLayout<br />log4j.appender.error.layout.ConversionPattern=[%-5p] [%d{HH:mm:ss}] %c - %m%n<br />log4j.appender.error.datePattern='.'yyyy-MM-dd<br />log4j.appender.error.Threshold = ERROR <br />log4j.appender.error.append=true<br />log4j.appender.error.File=${webApp.root}/WEB-INF/logs/error.log</span> </div> <img src ="http://www.tkk7.com/vip01/aggbug/201819.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/vip01/" target="_blank">交口U赞</a> 2008-05-21 09:26 <a href="http://www.tkk7.com/vip01/archive/2008/05/21/201819.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Adobe Flex Builder 3 Beta 3 出来?/title><link>http://www.tkk7.com/vip01/archive/2007/12/13/167525.html</link><dc:creator>交U赞</dc:creator><author>交U赞</author><pubDate>Thu, 13 Dec 2007 08:17:00 GMT</pubDate><guid>http://www.tkk7.com/vip01/archive/2007/12/13/167525.html</guid><wfw:comment>http://www.tkk7.com/vip01/comments/167525.html</wfw:comment><comments>http://www.tkk7.com/vip01/archive/2007/12/13/167525.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/vip01/comments/commentRss/167525.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/vip01/services/trackbacks/167525.html</trackback:ping><description><![CDATA[下蝲地址Q方便没有̎L(fng)兄弟?br />q雷下蝲?br /><a ><br />http://www.adobe.com/cfusion/entitlement/index.cfm?event=custom&sku=RC00419&e=labs_adobeflexbuilder3</a><br /><br />最q一直在研究flex?br />flex3+spring+hessian+hibenate<br />搭了一个框架ƈ整合了开发工?br /><br />从flex白痴Qflas只是0,as3知识0,flex知识0Q到q_搭徏q做出demo<br />前后用了一周的业余旉?br />没有在语a上遇到障,以前搞过Zeclipse RCP的C/SQ所以思维方式也没遇到什么障?br />是在熟(zhn)控Ӟ分模块开发(q个׃很多旉Q后来才知道有moduleQ,前后台整合这些地方花了时间?br /><br />实践了一把以后,感觉前台用flex比以前的html方式有很多优?br /><br />上手?br />代码z?br />可读性好<br />l护方便<br />允行速度?br />漂亮<br />开发效率好<br />减少了前台的bug概率<br />做图表效果惊?br /><br /><br /><br />但是flex3q没有正式发?br />q有不少bug<br />开发工具不E_<br />Ҏ(gu)器要求高1g内存做开发比较慢<br /><br /><img src ="http://www.tkk7.com/vip01/aggbug/167525.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/vip01/" target="_blank">交U赞</a> 2007-12-13 16:17 <a href="http://www.tkk7.com/vip01/archive/2007/12/13/167525.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>window.print与各U浏览器的测?http://www.tkk7.com/vip01/archive/2007/08/29/140859.html交口U赞交U赞Wed, 29 Aug 2007 04:46:00 GMThttp://www.tkk7.com/vip01/archive/2007/08/29/140859.htmlhttp://www.tkk7.com/vip01/comments/140859.htmlhttp://www.tkk7.com/vip01/archive/2007/08/29/140859.html#Feedback0http://www.tkk7.com/vip01/comments/commentRss/140859.htmlhttp://www.tkk7.com/vip01/services/trackbacks/140859.html  阅读全文

交U赞 2007-08-29 12:46 发表评论
]]>
回R自动提交与各U浏览器的测?/title><link>http://www.tkk7.com/vip01/archive/2007/08/28/140318.html</link><dc:creator>交U赞</dc:creator><author>交U赞</author><pubDate>Tue, 28 Aug 2007 01:51:00 GMT</pubDate><guid>http://www.tkk7.com/vip01/archive/2007/08/28/140318.html</guid><wfw:comment>http://www.tkk7.com/vip01/comments/140318.html</wfw:comment><comments>http://www.tkk7.com/vip01/archive/2007/08/28/140318.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.tkk7.com/vip01/comments/commentRss/140318.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/vip01/services/trackbacks/140318.html</trackback:ping><description><![CDATA[     摘要: 很多时候,我们在页面提交之前要做一些值的验,或者动态拼action{等Q但是在有的览器,在文本框{控件上回RӞ?x)自动提交页?nbsp; <a href='http://www.tkk7.com/vip01/archive/2007/08/28/140318.html'>阅读全文</a><img src ="http://www.tkk7.com/vip01/aggbug/140318.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/vip01/" target="_blank">交口U赞</a> 2007-08-28 09:51 <a href="http://www.tkk7.com/vip01/archive/2007/08/28/140318.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>window.close()的全览器兼Ҏ(gu)?/title><link>http://www.tkk7.com/vip01/archive/2007/08/24/139094.html</link><dc:creator>交U赞</dc:creator><author>交U赞</author><pubDate>Fri, 24 Aug 2007 06:05:00 GMT</pubDate><guid>http://www.tkk7.com/vip01/archive/2007/08/24/139094.html</guid><wfw:comment>http://www.tkk7.com/vip01/comments/139094.html</wfw:comment><comments>http://www.tkk7.com/vip01/archive/2007/08/24/139094.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.tkk7.com/vip01/comments/commentRss/139094.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/vip01/services/trackbacks/139094.html</trackback:ping><description><![CDATA[     摘要: Navigator 2.0: closes any window. <br>Navigator 3.0: closes only windows opened by JavaScript. <br>Navigator 4.0: must use signed scripts to unconditionally close a window  <a href='http://www.tkk7.com/vip01/archive/2007/08/24/139094.html'>阅读全文</a><img src ="http://www.tkk7.com/vip01/aggbug/139094.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/vip01/" target="_blank">交U赞</a> 2007-08-24 14:05 <a href="http://www.tkk7.com/vip01/archive/2007/08/24/139094.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>言l结者:(x)document.all真的是IE only吗?http://www.tkk7.com/vip01/archive/2007/08/13/136287.html交口U赞交U赞Mon, 13 Aug 2007 01:51:00 GMThttp://www.tkk7.com/vip01/archive/2007/08/13/136287.htmlhttp://www.tkk7.com/vip01/comments/136287.htmlhttp://www.tkk7.com/vip01/archive/2007/08/13/136287.html#Feedback13http://www.tkk7.com/vip01/comments/commentRss/136287.htmlhttp://www.tkk7.com/vip01/services/trackbacks/136287.html阅读全文

交U赞 2007-08-13 09:51 发表评论
]]>
学习(fn)Java6(一) WebServices Q?Q在tomcat中发?/title><link>http://www.tkk7.com/vip01/archive/2007/01/05/91958.html</link><dc:creator>交U赞</dc:creator><author>交口U赞</author><pubDate>Fri, 05 Jan 2007 05:38:00 GMT</pubDate><guid>http://www.tkk7.com/vip01/archive/2007/01/05/91958.html</guid><wfw:comment>http://www.tkk7.com/vip01/comments/91958.html</wfw:comment><comments>http://www.tkk7.com/vip01/archive/2007/01/05/91958.html#Feedback</comments><slash:comments>38</slash:comments><wfw:commentRss>http://www.tkk7.com/vip01/comments/commentRss/91958.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/vip01/services/trackbacks/91958.html</trackback:ping><description><![CDATA[ <p>Z满q大|友的要求,今天抽时间搞了下WebServices 在tomcat中的发布<br />相关文章Q?br /><a class="titlelink" id="Editor_Results_rprSelectionList_ctl01_LinkTitle" href="/vip01/archive/2007/01/05/91954.html">tomcat启动时自动加载servlet</a><br /><a class="titlelink" id="Editor_Results_rprSelectionList_ctl07_LinkTitle" href="/vip01/archive/2006/12/21/89201.html">学习(fn)Java6(一) WebServices Q?Q服务端</a><br /><a class="titlelink" id="Editor_Results_rprSelectionList_ctl06_Hyperlink1" href="/vip01/archive/2006/12/21/89204.html">学习(fn)Java6(一) WebServices Q?Q客L(fng)</a><br /><br />新徏一个servletQ偶太,能少打一个字W都是好的,所以servlet写的非常z,也适合初学者看得懂。。。。。。。。。?br />WebServiceStarter.java<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"> <span style="COLOR: #008080"> 1</span> <span style="COLOR: #0000ff">import</span><span style="COLOR: #000000"> javax.servlet.ServletException;<br /></span><span style="COLOR: #008080"> 2</span> <span style="COLOR: #000000"></span><span style="COLOR: #0000ff">import</span><span style="COLOR: #000000"> javax.servlet.http.HttpServlet;<br /></span><span style="COLOR: #008080"> 3</span> <span style="COLOR: #000000"></span><span style="COLOR: #0000ff">import</span><span style="COLOR: #000000"> javax.xml.ws.Endpoint;<br /></span><span style="COLOR: #008080"> 4</span> <span style="COLOR: #000000"><br /></span><span style="COLOR: #008080"> 5</span> <span style="COLOR: #000000"></span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">class</span><span style="COLOR: #000000"> WebServiceStarter </span><span style="COLOR: #0000ff">extends</span><span style="COLOR: #000000"> HttpServlet {<br /></span><span style="COLOR: #008080"> 6</span> <span style="COLOR: #000000">    <br /></span><span style="COLOR: #008080"> 7</span> <span style="COLOR: #000000">    </span><span style="COLOR: #0000ff">private</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">static</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">final</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">long</span><span style="COLOR: #000000"> serialVersionUID </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">5870534239093709659L</span><span style="COLOR: #000000">;<br /></span><span style="COLOR: #008080"> 8</span> <span style="COLOR: #000000"><br /></span><span style="COLOR: #008080"> 9</span> <span style="COLOR: #000000">    </span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000"> WebServiceStarter() {<br /></span><span style="COLOR: #008080">10</span> <span style="COLOR: #000000">        </span><span style="COLOR: #0000ff">super</span><span style="COLOR: #000000">();<br /></span><span style="COLOR: #008080">11</span> <span style="COLOR: #000000">    }<br /></span><span style="COLOR: #008080">12</span> <span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">13</span> <span style="COLOR: #000000">    </span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000"> destroy() {<br /></span><span style="COLOR: #008080">14</span> <span style="COLOR: #000000">        </span><span style="COLOR: #0000ff">super</span><span style="COLOR: #000000">.destroy();<br /></span><span style="COLOR: #008080">15</span> <span style="COLOR: #000000">    }<br /></span><span style="COLOR: #008080">16</span> <span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">17</span> <span style="COLOR: #000000">    </span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000"> init() </span><span style="COLOR: #0000ff">throws</span><span style="COLOR: #000000"> ServletException {<br /></span><span style="COLOR: #008080">18</span> <span style="COLOR: #000000">        System.out.println(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">准备启动服务</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">);<br /></span><span style="COLOR: #008080">19</span> <span style="COLOR: #000000">        Endpoint.publish(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">http://localhost:8080/HelloService</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">, </span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000"> Hello());<br /></span><span style="COLOR: #008080">20</span> <span style="COLOR: #000000">        System.out.println(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">服务启动完毕</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">);<br /></span><span style="COLOR: #008080">21</span> <span style="COLOR: #000000">    }<br /></span><span style="COLOR: #008080">22</span> <span style="COLOR: #000000">}<br /></span><span style="COLOR: #008080">23</span> <span style="COLOR: #000000"></span></div> <br />web servicecHello.java也是非常?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> <span style="COLOR: #000000"><br /></span><span style="COLOR: #008080"> 2</span> <span style="COLOR: #000000"><br /></span><span style="COLOR: #008080"> 3</span> <span style="COLOR: #000000"></span><span style="COLOR: #0000ff">import</span><span style="COLOR: #000000"> javax.jws.WebMethod;<br /></span><span style="COLOR: #008080"> 4</span> <span style="COLOR: #000000"></span><span style="COLOR: #0000ff">import</span><span style="COLOR: #000000"> javax.jws.WebService;<br /></span><span style="COLOR: #008080"> 5</span> <span style="COLOR: #000000"></span><span style="COLOR: #0000ff">import</span><span style="COLOR: #000000"> javax.jws.soap.SOAPBinding;<br /></span><span style="COLOR: #008080"> 6</span> <span style="COLOR: #000000"><br /></span><span style="COLOR: #008080"> 7</span> <span style="COLOR: #000000">@WebService(targetNamespace </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">http://jdk.study.hermit.org/client</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">)<br /></span><span style="COLOR: #008080"> 8</span> <span style="COLOR: #000000">@SOAPBinding(style </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> SOAPBinding.Style.RPC)<br /></span><span style="COLOR: #008080"> 9</span> <span style="COLOR: #000000"></span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">class</span><span style="COLOR: #000000"> Hello {<br /></span><span style="COLOR: #008080">10</span> <span style="COLOR: #000000">    @WebMethod<br /></span><span style="COLOR: #008080">11</span> <span style="COLOR: #000000">    </span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000"> String sayHello(String name) {<br /></span><span style="COLOR: #008080">12</span> <span style="COLOR: #000000">        </span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">hello:</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">+</span><span style="COLOR: #000000"> name;<br /></span><span style="COLOR: #008080">13</span> <span style="COLOR: #000000">    }<br /></span><span style="COLOR: #008080">14</span> <span style="COLOR: #000000">}</span></div>web.xml<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> <span style="COLOR: #0000ff"><?</span><span style="COLOR: #ff00ff">xml version="1.0" encoding="UTF-8"</span><span style="COLOR: #0000ff">?></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080"> 2</span> <span style="COLOR: #000000"></span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">web-app </span><span style="COLOR: #ff0000">version</span><span style="COLOR: #0000ff">="2.4"</span><span style="COLOR: #ff0000"> xmlns</span><span style="COLOR: #0000ff">="http://java.sun.com/xml/ns/j2ee"</span><span style="COLOR: #ff0000"><br /></span><span style="COLOR: #008080"> 3</span> <span style="COLOR: #ff0000">    xmlns:xsi</span><span style="COLOR: #0000ff">="http://www.w3.org/2001/XMLSchema-instance"</span><span style="COLOR: #ff0000"><br /></span><span style="COLOR: #008080"> 4</span> <span style="COLOR: #ff0000">    xsi:schemaLocation</span><span style="COLOR: #0000ff">="http://java.sun.com/xml/ns/j2ee <br /></span><span style="COLOR: #008080"> 5</span> <span style="COLOR: #0000ff">    http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080"> 6</span> <span style="COLOR: #000000">    </span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">servlet</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080"> 7</span> <span style="COLOR: #000000">        </span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">servlet-name</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000">WebServiceStarter</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"> 8</span> <span style="COLOR: #000000">        </span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">servlet-class</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000">WebServiceStarter</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">servlet-class</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080"> 9</span> <span style="COLOR: #000000">        </span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">load-on-startup</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000">1</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">load-on-startup</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">10</span> <span style="COLOR: #000000">    </span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">servlet</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">11</span> <span style="COLOR: #000000"></span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">web-app</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">12</span> <span style="COLOR: #000000"></span></div><br />ok<br />p三个文g。。。。。。。。。啥jar都不要。。。?br />发布Q启动服务器<br />2007-1-5 13:28:37 org.apache.catalina.core.AprLifecycleListener init<br />信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: G:\JDK6\bin;F:\tomcat6\bin<br />2007-1-5 13:28:37 org.apache.coyote.http11.Http11Protocol init<br />信息: Initializing Coyote HTTP/1.1 on http-8080<br />2007-1-5 13:28:37 org.apache.catalina.startup.Catalina load<br />信息: Initialization processed in 937 ms<br />2007-1-5 13:28:38 org.apache.catalina.core.StandardService start<br />信息: Starting service Catalina<br />2007-1-5 13:28:38 org.apache.catalina.core.StandardEngine start<br />信息: Starting Servlet Engine: Apache Tomcat/6.0.7<br />2007-1-5 13:28:38 org.apache.catalina.core.StandardHost start<br />信息: XML validation disabled<br />2007-1-5 13:28:38 org.apache.catalina.core.ApplicationContext log<br />信息: ContextListener: contextInitialized()<br />2007-1-5 13:28:38 org.apache.catalina.core.ApplicationContext log<br />信息: SessionListener: contextInitialized()<br /><font color="#ff0000">准备启动服务<br />服务启动完毕<br /></font>2007-1-5 13:28:39 org.apache.coyote.http11.Http11Protocol start<br />信息: Starting Coyote HTTP/1.1 on http-8080<br />2007-1-5 13:28:39 org.apache.jk.common.ChannelSocket init<br />信息: JK: ajp13 listening on /0.0.0.0:8009<br />2007-1-5 13:28:39 org.apache.jk.server.JkMain start<br />信息: Jk running ID=0 time=16/62  config=null<br />2007-1-5 13:28:39 org.apache.catalina.startup.Catalina start<br />信息: Server startup in 1969 ms<br /><br /><br />讉KQ?a href="http://localhost:8080/HelloService?wsdl">http://localhost:8080/HelloService?wsdl</a><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> <span style="COLOR: #000000">  </span><span style="COLOR: #0000ff"><?</span><span style="COLOR: #ff00ff">xml version="1.0" encoding="UTF-8" </span><span style="COLOR: #0000ff">?></span><span style="COLOR: #000000"> <br /></span><span style="COLOR: #008080"> 2</span> <span style="COLOR: #000000">- </span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">definitions </span><span style="COLOR: #ff0000">xmlns</span><span style="COLOR: #0000ff">="http://schemas.xmlsoap.org/wsdl/"</span><span style="COLOR: #ff0000"> xmlns:tns</span><span style="COLOR: #0000ff">="http://jdk.study.hermit.org/client"</span><span style="COLOR: #ff0000"> xmlns:xsd</span><span style="COLOR: #0000ff">="http://www.w3.org/2001/XMLSchema"</span><span style="COLOR: #ff0000"> xmlns:soap</span><span style="COLOR: #0000ff">="http://schemas.xmlsoap.org/wsdl/soap/"</span><span style="COLOR: #ff0000"> targetNamespace</span><span style="COLOR: #0000ff">="http://jdk.study.hermit.org/client"</span><span style="COLOR: #ff0000"> name</span><span style="COLOR: #0000ff">="HelloService"</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080"> 3</span> <span style="COLOR: #000000">  </span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">types </span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"> <br /></span><span style="COLOR: #008080"> 4</span> <span style="COLOR: #000000">- </span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">message </span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="sayHello"</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080"> 5</span> <span style="COLOR: #000000">  </span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">part </span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="arg0"</span><span style="COLOR: #ff0000"> type</span><span style="COLOR: #0000ff">="xsd:string"</span><span style="COLOR: #ff0000"> </span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"> <br /></span><span style="COLOR: #008080"> 6</span> <span style="COLOR: #000000">  </span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">message</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080"> 7</span> <span style="COLOR: #000000">- </span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">message </span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="sayHelloResponse"</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080"> 8</span> <span style="COLOR: #000000">  </span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">part </span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="return"</span><span style="COLOR: #ff0000"> type</span><span style="COLOR: #0000ff">="xsd:string"</span><span style="COLOR: #ff0000"> </span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"> <br /></span><span style="COLOR: #008080"> 9</span> <span style="COLOR: #000000">  </span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">message</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">10</span> <span style="COLOR: #000000">- </span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">portType </span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="Hello"</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">11</span> <span style="COLOR: #000000">- </span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">operation </span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="sayHello"</span><span style="COLOR: #ff0000"> parameterOrder</span><span style="COLOR: #0000ff">="arg0"</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">12</span> <span style="COLOR: #000000">  </span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">input </span><span style="COLOR: #ff0000">message</span><span style="COLOR: #0000ff">="tns:sayHello"</span><span style="COLOR: #ff0000"> </span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"> <br /></span><span style="COLOR: #008080">13</span> <span style="COLOR: #000000">  </span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">output </span><span style="COLOR: #ff0000">message</span><span style="COLOR: #0000ff">="tns:sayHelloResponse"</span><span style="COLOR: #ff0000"> </span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"> <br /></span><span style="COLOR: #008080">14</span> <span style="COLOR: #000000">  </span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">operation</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">15</span> <span style="COLOR: #000000">  </span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">portType</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">16</span> <span style="COLOR: #000000">- </span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">binding </span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="HelloPortBinding"</span><span style="COLOR: #ff0000"> type</span><span style="COLOR: #0000ff">="tns:Hello"</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">17</span> <span style="COLOR: #000000">  </span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">soap:binding </span><span style="COLOR: #ff0000">style</span><span style="COLOR: #0000ff">="rpc"</span><span style="COLOR: #ff0000"> transport</span><span style="COLOR: #0000ff">="http://schemas.xmlsoap.org/soap/http"</span><span style="COLOR: #ff0000"> </span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"> <br /></span><span style="COLOR: #008080">18</span> <span style="COLOR: #000000">- </span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">operation </span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="sayHello"</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">19</span> <span style="COLOR: #000000">  </span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">soap:operation </span><span style="COLOR: #ff0000">soapAction</span><span style="COLOR: #0000ff">=""</span><span style="COLOR: #ff0000"> </span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"> <br /></span><span style="COLOR: #008080">20</span> <span style="COLOR: #000000">- </span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">input</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">21</span> <span style="COLOR: #000000">  </span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">soap:body </span><span style="COLOR: #ff0000">use</span><span style="COLOR: #0000ff">="literal"</span><span style="COLOR: #ff0000"> namespace</span><span style="COLOR: #0000ff">="http://jdk.study.hermit.org/client"</span><span style="COLOR: #ff0000"> </span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"> <br /></span><span style="COLOR: #008080">22</span> <span style="COLOR: #000000">  </span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">input</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">23</span> <span style="COLOR: #000000">- </span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">output</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">24</span> <span style="COLOR: #000000">  </span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">soap:body </span><span style="COLOR: #ff0000">use</span><span style="COLOR: #0000ff">="literal"</span><span style="COLOR: #ff0000"> namespace</span><span style="COLOR: #0000ff">="http://jdk.study.hermit.org/client"</span><span style="COLOR: #ff0000"> </span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"> <br /></span><span style="COLOR: #008080">25</span> <span style="COLOR: #000000">  </span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">output</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">26</span> <span style="COLOR: #000000">  </span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">operation</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">27</span> <span style="COLOR: #000000">  </span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">binding</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">28</span> <span style="COLOR: #000000">- </span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">service </span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="HelloService"</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">29</span> <span style="COLOR: #000000">- </span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">port </span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="HelloPort"</span><span style="COLOR: #ff0000"> binding</span><span style="COLOR: #0000ff">="tns:HelloPortBinding"</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">30</span> <span style="COLOR: #000000">  </span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">soap:address </span><span style="COLOR: #ff0000">location</span><span style="COLOR: #0000ff">="http://localhost:8080/HelloService"</span><span style="COLOR: #ff0000"> </span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"> <br /></span><span style="COLOR: #008080">31</span> <span style="COLOR: #000000">  </span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">port</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">32</span> <span style="COLOR: #000000">  </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">  </span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">definitions</span><span style="COLOR: #0000ff">></span></div>看到以上代码okQ?br />客户端写法照?br /><br />呵呵Q这下大家满意了吧。。。。。。。。?br />有冲动想把项目里的xfire撤掉了。。。。。。。。。。。。。。。。?img src ="http://www.tkk7.com/vip01/aggbug/91958.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/vip01/" target="_blank">交U赞</a> 2007-01-05 13:38 <a href="http://www.tkk7.com/vip01/archive/2007/01/05/91958.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>tomcat启动时自动加载servlethttp://www.tkk7.com/vip01/archive/2007/01/05/91954.html交U赞交U赞Fri, 05 Jan 2007 05:26:00 GMThttp://www.tkk7.com/vip01/archive/2007/01/05/91954.htmlhttp://www.tkk7.com/vip01/comments/91954.htmlhttp://www.tkk7.com/vip01/archive/2007/01/05/91954.html#Feedback11http://www.tkk7.com/vip01/comments/commentRss/91954.htmlhttp://www.tkk7.com/vip01/services/trackbacks/91954.html阅读全文

交口U赞 2007-01-05 13:26 发表评论
]]>
վ֩ģ壺 ҵijdzӪѹۿ| ޹aƷ| Ļ߿| պ޹ۺϸ| þ޹| AžƷһ| һѹۿƵwww| þþùƷ| ˹վvƬѹۿ| vavaó| Ļ| 3Dһ| AV߹ۿɫ| þþþùɫAVѿͼƬ| 91ѽ| hƵ߹ۿ| Ѿþˬˬav| һ| ޾Ʒ91| AVAVպAVվ| ݺɫۺվɫ | ŷһղ| ޾ƷƵ߹ۿ| avպav| AVþþƷ| ˳վ| ˳վ߲vr| ޳AVƬ߹ۿ| ˿ۺ| þAVվ| Ʒһ߲| ޲avĻ| ޹㽶þþþþ| ƷƵ| պӰ| ɫƷƵ| ѿԻ40| av벻˽ӰԺ| ۺϾƷ㽶þ| VAĻëƬ| ޻ɫƬѿ|