﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-心梦帆影——JavaEE探索与研究-随笔分类-图解教程</title><link>http://www.blogjava.net/rongxh7/category/40604.html</link><description>Struts2.x+Spring2.x+Hibernate3.x+EJB3.0+JPA+Jquery+SOA+WebService+Eclipse+MySQL+Oracle+WebLogic+JBoss+.......探索与求知，寻找一条完美的路，通过梦想的世界！</description><language>zh-cn</language><lastBuildDate>Thu, 02 Jul 2009 16:16:55 GMT</lastBuildDate><pubDate>Thu, 02 Jul 2009 16:16:55 GMT</pubDate><ttl>60</ttl><item><title>[图解教程]Eclipse不可不知的用法之四：配置服务器与项目的新建运行</title><link>http://www.blogjava.net/rongxh7/archive/2009/07/02/285241.html</link><dc:creator>心梦帆影</dc:creator><author>心梦帆影</author><pubDate>Thu, 02 Jul 2009 12:53:00 GMT</pubDate><guid>http://www.blogjava.net/rongxh7/archive/2009/07/02/285241.html</guid><wfw:comment>http://www.blogjava.net/rongxh7/comments/285241.html</wfw:comment><comments>http://www.blogjava.net/rongxh7/archive/2009/07/02/285241.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/rongxh7/comments/commentRss/285241.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/rongxh7/services/trackbacks/285241.html</trackback:ping><description><![CDATA[<p>这么有失水准的文章，真不好意思再写了。但毕竟还是有些初学者不熟悉，截些图来看一下配置服务器的过程吧。</p> <p><font color="#0000ff"><strong>(7) 配置Tomcat服务器</strong></font></p> <p>这里以配置Tomcat 6.0为例。</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Eclipse_12013/image_2.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Eclipse_12013/image_thumb.png" width="598" height="323"></a> </p> <p>选择Server下面的Runtime Environments：</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Eclipse_12013/image_4.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Eclipse_12013/image_thumb_1.png" width="563" height="444"></a> </p> <p>点击右边的&#8220;Add&#8221;按钮，进&#8220;New Server Runtime Environment&#8221;对话框，选择我们要配置的Tomcat版本，这里选用了Tomcat v6.0，注意要与你下载的版本一致。</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Eclipse_12013/image_6.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Eclipse_12013/image_thumb_2.png" width="528" height="535"></a> </p> <p>Next后进入下图:</p> <p></p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Eclipse_12013/image_8.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Eclipse_12013/image_thumb_3.png" width="487" height="346"></a>&nbsp;</p> <p>在Tomcat installation directory右边的Browse按钮，点击它，进入本地磁盘目录，选择你的Tomcat安装目录，如下：</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Eclipse_12013/image_10.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Eclipse_12013/image_thumb_4.png" width="507" height="373"></a> </p> <p>确定后，回到刚才那个对话框，点击JRE右边的Installed JREs按钮，进入下图的界面：</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Eclipse_12013/image_12.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Eclipse_12013/image_thumb_5.png" width="601" height="357"></a> </p> <p>如果这里已经配置了JDK,则直接选择即行，如果没有配置的话，就点右边的&#8220;Add&#8221;,添加一个标准的JRE</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Eclipse_12013/image_14.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Eclipse_12013/image_thumb_6.png" width="535" height="378"></a> </p> <p>Next,下图，点右边的Directgry浏览本地文件系统，找到JDK的安装目录。</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Eclipse_12013/image_16.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Eclipse_12013/image_thumb_7.png" width="456" height="409"></a> </p> <p></p> <p></p> <p>好，确定 &#8211; finish，下一步，完成。如下图：</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Eclipse_12013/image_18.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Eclipse_12013/image_thumb_8.png" width="585" height="324"></a> </p> <p>&nbsp;</p> <p><font color="#0000ff"><strong>(8) 项目的新建、添加jar包、运行。</strong></font></p> <p>一般我们用这个工具来做Web项目，就建一个动态Web工程吧：</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Eclipse_12013/image_20.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Eclipse_12013/image_thumb_9.png" width="602" height="293"></a> </p> <p>如果上图的选项中没有Dynamic Web Project的话，可在最下面Other那里找到，又或者通过定制菜单将这一项显示在这里，关于如何定制菜单，请看我的<a href="http://www.blogjava.net/rongxh7/archive/2009/06/29/284564.html">[图解教程]Eclipse不可不知的用法之三：定制视图与New菜单项</a>。</p> <p>进入下图界面，在Project name中输入工程名，这里起名为&#8220;HelloWorld&#8221;，在Target runtime中选择刚才我们配置的Tomcat 6.0服务器。如下图：</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Eclipse_12013/image_22.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Eclipse_12013/image_thumb_10.png" width="613" height="456"></a>&nbsp;</p> <p>行了，完成。</p> <p>关于如何把外部的jar包引进我们的项目中来，这个其实很简单，复制那些jar文件，在下图的lib目录下右键粘贴即行。</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Eclipse_12013/image_24.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Eclipse_12013/image_thumb_11.png" width="490" height="415"></a> </p> <p>关于如何运行Web项目，Eclipse for JavaEE与MyEclipse的做法不同。</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Eclipse_12013/image_26.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Eclipse_12013/image_thumb_12.png" width="604" height="461"></a> </p> <p>进入下图，找到我们配置的服务器：</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Eclipse_12013/image_28.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Eclipse_12013/image_thumb_13.png" width="491" height="578"></a> </p> <p>Next &#8211; &gt; finish即行。</p> <p>&nbsp;</p> <p>好了，Eclipse系列图解教程，到这里，暂告一段落，都是说一些很基础的东西，有什么不足之处，请大家多多包涵！</p> <img src ="http://www.blogjava.net/rongxh7/aggbug/285241.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/rongxh7/" target="_blank">心梦帆影</a> 2009-07-02 20:53 <a href="http://www.blogjava.net/rongxh7/archive/2009/07/02/285241.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>[图解教程]Axis2与Eclipse整合开发Web Service之二：WSDL逆向生成服务端</title><link>http://www.blogjava.net/rongxh7/archive/2009/07/02/285193.html</link><dc:creator>心梦帆影</dc:creator><author>心梦帆影</author><pubDate>Thu, 02 Jul 2009 07:47:00 GMT</pubDate><guid>http://www.blogjava.net/rongxh7/archive/2009/07/02/285193.html</guid><wfw:comment>http://www.blogjava.net/rongxh7/comments/285193.html</wfw:comment><comments>http://www.blogjava.net/rongxh7/archive/2009/07/02/285193.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/rongxh7/comments/commentRss/285193.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/rongxh7/services/trackbacks/285193.html</trackback:ping><description><![CDATA[<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 一般开发Web Service，是选写服务端，再根据生成的WSDL文件生成客户端。看过一本SOA的书中说，如果实现防止不同语言一些特定的数据类型的不兼容性，推荐先定义WSDL接口，包括一输入输出参数、返回值及相关的数据类型等，再通过WSDL来生成服务器端和客户端，这样的好处是：服务端不用关心客户端怎么调用，客户端也不用关系服务端如何实现。</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 关于Eclipse中Axis2的配置方法，请看我的<a href="http://www.blogjava.net/rongxh7/archive/2009/05/21/271982.html">[图解教程] Axis2与Eclipse整合开发Web Service之一：简单的计算服务例子</a>，下面来新建一个WSDL文件，如下图：</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Axis2EclipseWebServiceWSDL_C28D/image_2.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Axis2EclipseWebServiceWSDL_C28D/image_thumb.png" width="590" height="595"></a> </p> <p>改个名字为&#8220;manager.wsdl&#8221;，如下图：</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Axis2EclipseWebServiceWSDL_C28D/image_4.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Axis2EclipseWebServiceWSDL_C28D/image_thumb_1.png" width="546" height="465"></a> </p> <p>下一步，定义命名空间和协议等信息，默认即行。如下图：</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Axis2EclipseWebServiceWSDL_C28D/image_6.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Axis2EclipseWebServiceWSDL_C28D/image_thumb_2.png" width="504" height="429"></a> </p> <p>finish后，会在主工作区出现如下图：</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Axis2EclipseWebServiceWSDL_C28D/image_12.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Axis2EclipseWebServiceWSDL_C28D/image_thumb_5.png" width="612" height="195"></a> </p> <p>这是manager.wsdl的图形化形式，点击&#8220;Source&#8221;会可查看到源代码：</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Axis2EclipseWebServiceWSDL_C28D/image_14.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Axis2EclipseWebServiceWSDL_C28D/image_thumb_6.png" width="608" height="271"></a> </p> <p>这是默认生成的wsdl，我们要根据我们的项目需要，修改上面的图，首先对方法名进行修改，如下图：</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Axis2EclipseWebServiceWSDL_C28D/image_18.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Axis2EclipseWebServiceWSDL_C28D/image_thumb_8.png" width="472" height="170"></a> </p> <p>可见，修改之后，右边的input和output也跟着修改了，这两个就是定义plus的输入和输出。</p> <p>点击input参数&#8220;plus&#8221;右边的提示箭头，进入下图：</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Axis2EclipseWebServiceWSDL_C28D/image_20.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Axis2EclipseWebServiceWSDL_C28D/image_thumb_9.png" width="432" height="197"></a> </p> <p>就在这里定义输入参数和和参数类型等信息，因为我们plus(float x, float y)方法中有两个参数x和y，故我们将上图改成两个参数的序列：</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Axis2EclipseWebServiceWSDL_C28D/image_30.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Axis2EclipseWebServiceWSDL_C28D/image_thumb_14.png" width="416" height="229"></a> </p> <p>变成下图，对比一下方法plus(float x, float y)，下图也不会太难理解吧！</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Axis2EclipseWebServiceWSDL_C28D/image_32.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Axis2EclipseWebServiceWSDL_C28D/image_thumb_15.png" width="465" height="223"></a> </p> <p>我们返回manager.wsdl视图，选择output参数右边的箭头，进入下图：</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Axis2EclipseWebServiceWSDL_C28D/image_34.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Axis2EclipseWebServiceWSDL_C28D/image_thumb_16.png" width="451" height="168"></a> </p> <p>我们在这里设置float plus(float x, float y)方法的返回值及其类型，因其返回值只有一个，我们只须把上面的out的类型改成我们方法中用的float，改后，如下图：</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Axis2EclipseWebServiceWSDL_C28D/image_42.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Axis2EclipseWebServiceWSDL_C28D/image_thumb_20.png" width="530" height="203"></a> </p> <p>有没有注意到上图左上角有个<a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Axis2EclipseWebServiceWSDL_C28D/image_44.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Axis2EclipseWebServiceWSDL_C28D/image_thumb_21.png" width="37" height="32"></a> 图标，点击它，进入下图：</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Axis2EclipseWebServiceWSDL_C28D/image_48.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Axis2EclipseWebServiceWSDL_C28D/image_thumb_23.png" width="654" height="456"></a> </p> <p>我们可以在这里对输入输出的参数及其他数据类型进行修改，如果在上面的操作过程中，不小心产生了多余的标签的话，也可以在这里去除。</p> <p>好了，我们再回到manager.wsdl，在源代码视图里右键选&#8220;Validate&#8221;，对xml文档进行检验，如果有错误的，就根据需要修改。</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Axis2EclipseWebServiceWSDL_C28D/image_50.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Axis2EclipseWebServiceWSDL_C28D/image_thumb_24.png" width="318" height="216"></a> </p> <p>好了，图形化编写的wsdl文档完成了，顺便说一下，方法是可以定义多个的，如下图：</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Axis2EclipseWebServiceWSDL_C28D/image_52.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Axis2EclipseWebServiceWSDL_C28D/image_thumb_25.png" width="437" height="177"></a> </p> <p>为简单起见，我们就先以刚才做定义的那个方法为例，看看，如何根据wsdl文件，自动生成Web Service的服务器端。</p> <p>&nbsp;</p> <p>我们New一个Web Service，如下图：</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Axis2EclipseWebServiceWSDL_C28D/image_54.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Axis2EclipseWebServiceWSDL_C28D/image_thumb_26.png" width="523" height="497"></a> </p> <p>记得在Web Service type中选择&#8220;Top down Java Bean Web Service&#8221;，如下图：</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Axis2EclipseWebServiceWSDL_C28D/image_56.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Axis2EclipseWebServiceWSDL_C28D/image_thumb_27.png" width="545" height="185"></a></p> <p>然后，在Service definition中找到刚才写的那个manager.wsdl文件。</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Axis2EclipseWebServiceWSDL_C28D/image_58.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Axis2EclipseWebServiceWSDL_C28D/image_thumb_28.png" width="570" height="455"></a>&nbsp; </p> <p>回到Web Service对话框，将服务类型的滑块调到&#8220;Develop service&#8221;处，</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Axis2EclipseWebServiceWSDL_C28D/image_60.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Axis2EclipseWebServiceWSDL_C28D/image_thumb_29.png" width="584" height="398"></a> </p> <p>接下来，就next &#8211;&gt; next &#8211;-&gt; finish就行。它会自动生成Web Service服务端的接口和类，在类中，可找到我们定义的方法：</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Axis2EclipseWebServiceWSDL_C28D/image_62.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Axis2EclipseWebServiceWSDL_C28D/image_thumb_30.png" width="578" height="174"></a> </p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p>我们只要修改方法plus的方法体，以实现我们要实现的功能即行。如下：</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Axis2EclipseWebServiceWSDL_C28D/image_64.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/Axis2EclipseWebServiceWSDL_C28D/image_thumb_31.png" width="579" height="188"></a> </p> <p>这是通过WSDL反向生成Web Service服务端的最简单一个例子，可能看不到有什么好处，没有像<a href="http://www.blogjava.net/rongxh7/archive/2009/05/21/271982.html">[图解教程] Axis2与Eclipse整合开发Web Service之一：简单的计算服务例子</a>那样的简便快捷，但如果是一些特有的数据类型，如List，Set，这些，我们有在WSDL图形化设计中找到相应的替代类型，先定义WSDL再生成服务端接口，这样做，不仅Java开发客户端是没有问题的，用C#开发客户端也能成功没有出错！</p> <p>但如果先开发服务器端的话，如果用到一些Java特有的数据类型，如List，Set，如果用其他语言生成的客户端，就可能出问题。同理，用C#开发服务端，如果用到像DataSet这样的返回类型的话，那如果用Java或者其他语言去开发客户端，也可能会出现问题的。</p> <p>如果统一先写WSDL，再根据WSDL生成服务端和客户端，应该是一种很不错的做法，Eclipse在这方面的图形化支持给带给我们事半功倍的效果，这样做，也比较符合SOA的做法。</p> <img src ="http://www.blogjava.net/rongxh7/aggbug/285193.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/rongxh7/" target="_blank">心梦帆影</a> 2009-07-02 15:47 <a href="http://www.blogjava.net/rongxh7/archive/2009/07/02/285193.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>[图解教程]Eclipse不可不知的用法之三：定制视图与New菜单项</title><link>http://www.blogjava.net/rongxh7/archive/2009/06/29/284564.html</link><dc:creator>心梦帆影</dc:creator><author>心梦帆影</author><pubDate>Mon, 29 Jun 2009 03:20:00 GMT</pubDate><guid>http://www.blogjava.net/rongxh7/archive/2009/06/29/284564.html</guid><wfw:comment>http://www.blogjava.net/rongxh7/comments/284564.html</wfw:comment><comments>http://www.blogjava.net/rongxh7/archive/2009/06/29/284564.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/rongxh7/comments/commentRss/284564.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/rongxh7/services/trackbacks/284564.html</trackback:ping><description><![CDATA[<p>关键词：Show View , 显示视图， Customize Perspective ， 定制New菜单栏， Eclipse for JavaEE,&nbsp; 图解使用教程</p> <p><strong><font color="#0000ff">（5）定制视图</font></strong></p> <p>定制前的视图：</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/EclipseNew_964A/image_10.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/EclipseNew_964A/image_thumb_4.png" width="628" height="436"></a> </p> <p>菜单栏中Window &#8211;&gt; Show View &#8211;&gt; Other</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/EclipseNew_964A/image_12.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/EclipseNew_964A/image_thumb_5.png" width="478" height="286"></a> </p> <p>进入&#8220;Show View&#8221;对话框，在这里选择须要显示的视图，点&#8220;OK&#8221;即行。</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/EclipseNew_964A/image_14.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/EclipseNew_964A/image_thumb_6.png" width="409" height="631"></a> </p> <p>为测试，我选择几个常用的视图，如：java/Package Explorer , Data Management/Data Source Explorer , General/Internet Web Browser , General/Console 等等。</p> <p>定制后，我们将其拖放到想要放置的地方即行，显示如下图：</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/EclipseNew_964A/image_16.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/EclipseNew_964A/image_thumb_7.png" width="625" height="436"></a> </p> <p>&nbsp;</p> <p><font color="#0000ff"><strong>（6）定制New选项</strong></font></p> <p>原始的New选项：</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/EclipseNew_964A/image_2.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/EclipseNew_964A/image_thumb.png" width="614" height="517"></a> </p> <p>如果我们须要建的文件类型不在上图右边的选项栏中的话，就需要点&#8220;Other&#8221;进入下一个对话框去选择，有没有办法使得右边的选项栏中出现我们常常须要建的文件类型，而去掉那些不常使用的呢？</p> <p>点Window &#8211;&gt; Customize Perspective:</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/EclipseNew_964A/image_4.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/EclipseNew_964A/image_thumb_1.png" width="259" height="321"></a> </p> <p>进入Customize Perspective -Web对话框，选择最右边的选项卡Shortcuts,在Submenus中选择New，那么下面所列出的，若是选中的，则表示是在New菜单项中显示的。我们逐个逐个来，把要显示的选中，把不要显示的去掉。</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/EclipseNew_964A/image_6.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/EclipseNew_964A/image_thumb_2.png" width="616" height="433"></a> </p> <p>定制后的New选项：</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/EclipseNew_964A/image_8.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/EclipseNew_964A/image_thumb_3.png" width="625" height="395"></a> </p> <p>只显示我们常用的，简洁了许多吧。</p> <img src ="http://www.blogjava.net/rongxh7/aggbug/284564.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/rongxh7/" target="_blank">心梦帆影</a> 2009-06-29 11:20 <a href="http://www.blogjava.net/rongxh7/archive/2009/06/29/284564.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>[图解教程]Eclipse不可不知的用法之二：自动生成接口和JUnit测试类</title><link>http://www.blogjava.net/rongxh7/archive/2009/06/28/284438.html</link><dc:creator>心梦帆影</dc:creator><author>心梦帆影</author><pubDate>Sat, 27 Jun 2009 19:33:00 GMT</pubDate><guid>http://www.blogjava.net/rongxh7/archive/2009/06/28/284438.html</guid><wfw:comment>http://www.blogjava.net/rongxh7/comments/284438.html</wfw:comment><comments>http://www.blogjava.net/rongxh7/archive/2009/06/28/284438.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.blogjava.net/rongxh7/comments/commentRss/284438.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/rongxh7/services/trackbacks/284438.html</trackback:ping><description><![CDATA[<p>关键词：Extract Interface、抽取接口、JUnit Test Case、JUnit测试、自动生成接口、自动生成测试类、Eclipse-jee使用方法、自动生成代码、Eclipse3.5、图解使用教程</p> <p><strong><font color="#0000ff">（3）通过类自动生成它的接口：</font></strong></p> <p>在Spring应用中，常常会用到&#8220;接口+实现类&#8221;的形式，即要实现类又要写一个方法差不多的接口，有时候感觉比较烦琐。其实，Eclipse可以根据类自动抽取出接口来。</p> <p>PersonServiceImpl.java的代码如下：</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/EclipseforJavaEE_1F00/image_10.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/EclipseforJavaEE_1F00/image_thumb_4.png" width="619" height="417"></a> </p> <p>在上面代码的空白处点右键，或者在PersonServiceImpl类名上点右键 —&gt; Refactor &#8211;&gt; Extract Interface，如下图：  <p>&nbsp;<a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/EclipseforJavaEE_1F00/image_4.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/EclipseforJavaEE_1F00/image_thumb_1.png" width="597" height="415"></a> </p> <p>在&#8220;在Extract Interface&#8221;对话框中，Interface name框中输入接口名：PersonService，将addPerson和queryPerson方法钩选上，如下图：</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/EclipseforJavaEE_1F00/image_12.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/EclipseforJavaEE_1F00/image_thumb_5.png" width="502" height="392"></a> </p> <p>点OK后，即可自动生成PersonServiceImpl.java的接口类PersonService.java，如下图：</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/EclipseforJavaEE_1F00/image_14.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/EclipseforJavaEE_1F00/image_thumb_6.png" width="578" height="293"></a> </p> <p>而再看看PersonServiceImpl类代码有了什么变化：</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/EclipseforJavaEE_1F00/image_16.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/EclipseforJavaEE_1F00/image_thumb_7.png" width="472" height="94"></a> </p> <p>&nbsp;</p> <p><strong><font color="#0000ff">（4）自动生成Junit测试类</font></strong></p> <p>在类名上点右键 &#8211;&gt; New &#8211;&gt; Other ，如下图：</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/EclipseforJavaEE_1F00/image_18.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/EclipseforJavaEE_1F00/image_thumb_8.png" width="624" height="392"></a> </p> <p>在新建对话框中，选择Java &gt;&gt; Junit &gt;&gt; Junit Test Case</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/EclipseforJavaEE_1F00/image_20.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/EclipseforJavaEE_1F00/image_thumb_9.png" width="558" height="531"></a> </p> <p>在&#8220;New Junit Test Case&#8221;对话框中，填写测试类名，此处，用默认（PersonServiceTest）即行，如果不想测试类与PersonService类置同一包下，可在Package中选择指定的包来存放测试类，此处也默认处理。如下图：</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/EclipseforJavaEE_1F00/image_22.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/EclipseforJavaEE_1F00/image_thumb_10.png" width="534" height="528"></a> </p> <p>点Next后进入下图，将要测试的方法钩选中，Finish即行。</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/EclipseforJavaEE_1F00/image_24.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/EclipseforJavaEE_1F00/image_thumb_11.png" width="507" height="367"></a> </p> <p>如果第一次建测试类，它要求加入JUnit的jar包，点OK即行。如下图：</p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/EclipseforJavaEE_1F00/image_26.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/EclipseforJavaEE_1F00/image_thumb_12.png" width="510" height="251"></a> </p> <p>这时，JUnit测试类PersonServiceTest.java便自动生成了，如下图：</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/EclipseforJavaEE_1F00/image_28.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/EclipseforJavaEE_1F00/image_thumb_13.png" width="612" height="257"></a> </p> <p>我们只须修改测试类的方法的方法体，即可进行测试。</p> <img src ="http://www.blogjava.net/rongxh7/aggbug/284438.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/rongxh7/" target="_blank">心梦帆影</a> 2009-06-28 03:33 <a href="http://www.blogjava.net/rongxh7/archive/2009/06/28/284438.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>[图解教程]Eclipse不可不知的用法之一：自动生成Getter、Setter和构造方法</title><link>http://www.blogjava.net/rongxh7/archive/2009/06/27/284413.html</link><dc:creator>心梦帆影</dc:creator><author>心梦帆影</author><pubDate>Sat, 27 Jun 2009 11:15:00 GMT</pubDate><guid>http://www.blogjava.net/rongxh7/archive/2009/06/27/284413.html</guid><wfw:comment>http://www.blogjava.net/rongxh7/comments/284413.html</wfw:comment><comments>http://www.blogjava.net/rongxh7/archive/2009/06/27/284413.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.blogjava.net/rongxh7/comments/commentRss/284413.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/rongxh7/services/trackbacks/284413.html</trackback:ping><description><![CDATA[<p><font color="#000000">关键词：Getters and Setters、getter和setter方法、Constructor using Fields、构造方法（构造函数）、Eclipse-jee使用方法、自动生成代码、Eclipse3.5、图解使用教程</font></p> <p><strong><font color="#0000ff">（1）POJO类自动生成Getter和Setter方法：</font></strong></p> <p>Persion.java原来的代码：</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/EclipseforJavaEE_106EA/image_4.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/EclipseforJavaEE_106EA/image_thumb_1.png" width="534" height="205"></a> </p> <p>在上面代码的空白处点右键，或者在Person类名上点右键 —&gt; Source &#8211;&gt; Generate Getters and Setters，如下图：</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/EclipseforJavaEE_106EA/image_6.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/EclipseforJavaEE_106EA/image_thumb_2.png" width="678" height="484"></a> </p> <p>接着，在Generate Getters and Setters对话框中，将Persion的属性id和name钩上，或直接点击&#8220;Select All&#8221;按钮将所有属性选中，点OK即行。</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/EclipseforJavaEE_106EA/image_8.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/EclipseforJavaEE_106EA/image_thumb_3.png" width="610" height="491"></a> </p> <p>我们再看看Person.java类的代码：</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/EclipseforJavaEE_106EA/image_10.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/EclipseforJavaEE_106EA/image_thumb_4.png" width="484" height="386"></a> </p> <p>可见，Getter方法和Setter方法自动生成了，比一个一个去敲代码便捷多了。</p> <p></p> <p>&nbsp;</p> <p><strong><font color="#0000ff">（2）自动生成构造方法（构造函数）：</font></p></strong> <p>在类代码的空白处点右键，或者在类名上点右键 —&gt; Source &#8211;&gt; Generate Constructor using Fields，如下图：</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/EclipseforJavaEE_106EA/image_12.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/EclipseforJavaEE_106EA/image_thumb_5.png" width="705" height="273"></a> </p> <p>在Generate Constructor using Fields对话框中, 将Persion类的全部属性或部分属性钩上，点OK即行。如下图：</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/EclipseforJavaEE_106EA/image_14.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/EclipseforJavaEE_106EA/image_thumb_6.png" width="494" height="403"></a> </p> <p>下来，来看看自己生成的构造方法，见下图选中部分：</p> <p><a href="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/EclipseforJavaEE_106EA/image_16.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.blogjava.net/images/blogjava_net/rongxh7/WindowsLiveWriter/EclipseforJavaEE_106EA/image_thumb_7.png" width="453" height="195"></a></p> <img src ="http://www.blogjava.net/rongxh7/aggbug/284413.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/rongxh7/" target="_blank">心梦帆影</a> 2009-06-27 19:15 <a href="http://www.blogjava.net/rongxh7/archive/2009/06/27/284413.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>[图解教程] Axis2与Eclipse整合开发Web Service之一：简单的计算服务例子</title><link>http://www.blogjava.net/rongxh7/archive/2009/05/21/271982.html</link><dc:creator>心梦帆影</dc:creator><author>心梦帆影</author><pubDate>Thu, 21 May 2009 07:13:00 GMT</pubDate><guid>http://www.blogjava.net/rongxh7/archive/2009/05/21/271982.html</guid><wfw:comment>http://www.blogjava.net/rongxh7/comments/271982.html</wfw:comment><comments>http://www.blogjava.net/rongxh7/archive/2009/05/21/271982.html#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>http://www.blogjava.net/rongxh7/comments/commentRss/271982.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/rongxh7/services/trackbacks/271982.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 系统功能: 开发一个计算器服务CalculateService，这个服务包含加(plus)、减(minus)、乘(multiply)<br><br>、除(divide)的操作。<br><br>开发前准备：下载Axis2的最新版本Axis2 1.4.1 Release，网址<br><br>http://ws.apache.org/axis2/download/1_4_1/download.cgi，选择Standard Binary Distribution<br><br>的.zip包即"axis2-1.4.1-bin.zip"这个文件，解压缩得到的目录名axis2-1.4.1，目录内的文件结构如<br><br>下：&nbsp;&nbsp;<a href='http://www.blogjava.net/rongxh7/archive/2009/05/21/271982.html'>阅读全文</a><img src ="http://www.blogjava.net/rongxh7/aggbug/271982.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/rongxh7/" target="_blank">心梦帆影</a> 2009-05-21 15:13 <a href="http://www.blogjava.net/rongxh7/archive/2009/05/21/271982.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>