<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    BlogJava 首頁 新隨筆 聯系 聚合 管理
      37 Posts :: 64 Stories :: 21 Comments :: 0 Trackbacks
    Setting up
    1. Set up the installed JRE in eclipse (Windows -> Preferences -> Java -> Installed JREs)

     

     

    1. Set up the installed runtime for server in eclipse (Windows -> Preferences -> Server -> Installed Runtimes)

     

     

    1. Set up the Server view in eclipse (Windows -> Show View -> Other)

     

    1. Set up the Tomcat Server by right clicking and selecting New -> Server option from the Server view in eclipse

     

     

     

    ?span style="font:7.0pt "Times New Roman"">         Creating a Web service

    1. Create a new Dynamic Web Project in eclipse (File -> New -> Other)

     

    1. Enter name as 揥ebServiceTutorial? select project location as 揈:"Test? and select Apache Tomcat v5.5 as the Target server.

     

    1. Now create a new Java class from the Project Explorer (Dynamic Web Projects -> Java Source -> New -> Class)

     

     

    1. Enter name as 揌ello?and package as 揷om.tutorial?

     

    1. Add a simple method in the 揌ello?class as below.

                public String sayHello(String name){

                            return "Hello " + name;

                }            

         

     

    1. Save and build the project.
    2. Create a new Web service in eclipse (File -> New -> Other)

     

    1. Select Generate a proxy.
    2. Select Test the Web service.
    3. Select Overwrite files without warning.

     

    1. Select or enter the Bean name as 揷om.tutorial.Hello? This is the java class that we just now created.

     

    1. Continue the wizard by clicking Next and finish.
    2. On Finish, the Tomcat server starts up and launches the Test client.
    3. Verify the generated contents. Look for Hello.class and the generated JSPs as below.

     

     

    1. Verify the Tomcat folder and ensure the newly created web applications ? WebServiceTutorial, WebServiceTutorialClient.

     

     

    1. We can also run the following url from the browser to access/test the Web service.

    http://localhost:8080/WebServiceTutorialClient/sampleHelloProxy/TestClient.jsp

    1. If servlet error 搊rg.eclipse.jst.ws.util.JspUtils cannot be resolved or is not a type?is thrown on the browser, then copy the webserviceutils.jar file from the E:"Eclipse3.1"eclipse"plugins"org.eclipse.jst.ws.consumption_0.7.0 into the WEB-INF"lib folder of the WebServiceTutorialClient application and restart the Tomcat server.
    1. The browser displays the methods available in the web service.

     

    1. Click on the sayHello(..) method, enter your name (for e.g. 揓eeva? in the inputs section and click 揑nvoke?

     

     

    1. The browser greets using the web service.

     

    1. The WSDL for the Hello Web service can be found in E:"Test"WebServiceTutorial"WebContent"wsdl"Hello.wsdl. On double-click, the WSDL opens in a graphical editor.

     

     

    1. Right-click on the WSDL file and explore the options to test the web service / publish the WSDL file / generate client / etc.

     

    posted on 2009-10-10 09:57 xiachang88 閱讀(363) 評論(0)  編輯  收藏

    只有注冊用戶登錄后才能發表評論。


    網站導航:
     
    主站蜘蛛池模板: 99久久99久久精品免费看蜜桃| 一级毛片aa高清免费观看| 久久免费看少妇高潮V片特黄| 亚洲第一页日韩专区| 日本免费一区二区三区| 亚洲精品无码高潮喷水在线| 皇色在线免费视频| 成人免费的性色视频| 亚洲精品永久www忘忧草| 国产成人免费午夜在线观看 | 日韩精品无码永久免费网站| caoporn成人免费公开| 一本色道久久综合亚洲精品高清| yellow免费网站| 亚洲成AV人片在线观看无码| 1a级毛片免费观看| 久久精品国产亚洲AV久| 日韩在线免费播放| 国产精品极品美女自在线观看免费| 亚洲伊人久久精品影院| 久久综合国产乱子伦精品免费| 亚洲视频一区二区三区| 成人免费视频小说| 亚洲AV无码欧洲AV无码网站| 99视频在线精品免费| 亚洲自国产拍揄拍| 免费a级毛片永久免费| 中文字幕成人免费高清在线视频| 亚洲Av无码精品色午夜| 三年片在线观看免费大全| 亚洲四虎永久在线播放| 香蕉97超级碰碰碰免费公| 男男gvh肉在线观看免费| 中文字幕无码播放免费| 亚洲av永久无码| 天天摸天天操免费播放小视频| 美女啪啪网站又黄又免费| 四虎影在线永久免费观看| 亚洲成A人片在线播放器| 日韩亚洲精品福利| 97在线视频免费播放|