<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)  編輯  收藏

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


    網站導航:
     
    主站蜘蛛池模板: 久久亚洲AV无码精品色午夜麻豆| 久久99亚洲综合精品首页| 久久久久久久亚洲Av无码| 另类免费视频一区二区在线观看| 中文字幕亚洲日本岛国片| 中国毛片免费观看| 亚洲色自偷自拍另类小说| a级毛片免费高清毛片视频| 亚洲人成77777在线播放网站| 两个人看的www免费高清| 亚洲人成网站在线观看播放| 99免费在线视频| 久久久久无码精品亚洲日韩| 最近中文字幕高清免费中文字幕mv | 亚洲国产午夜精品理论片| xx视频在线永久免费观看| 亚洲国产精品一区二区三区在线观看 | 国产精品成人69XXX免费视频| 亚洲欧洲日产国码av系列天堂| 国产亚洲免费的视频看| 亚洲视频在线免费播放| 韩国免费一级成人毛片| 亚洲精品欧美综合四区| 亚洲午夜爱爱香蕉片| 久久免费高清视频| 亚洲不卡视频在线观看| 全免费一级午夜毛片| 中文字幕免费观看视频| 91亚洲精品麻豆| 免费A级毛片在线播放不收费| 四虎国产精品免费永久在线| 亚洲激情视频网站| 日韩高清免费在线观看| 91在线免费观看| 亚洲国产日韩综合久久精品| 亚洲日韩在线中文字幕第一页| 无码av免费一区二区三区试看| 四虎亚洲精品高清在线观看| 亚洲精品综合久久| 8x8x华人永久免费视频| 国产成人亚洲精品电影|