1 / 17

2009. 02. 04 CODELABOR Shin Sang Jae (codelabor@gmail)

Tutorial (Axis2 Web Service – Eclipse WTP 2.0). 2009. 02. 04 CODELABOR Shin Sang Jae (codelabor@gmail.com). Eclipse Configuration. Setup. Install Axis2 Eclipse > Window > Preferences > Web Services > Axis2 Preferences Browse the Axis2 Runtime Location. Eclipse Configuration. Setup.

Download Presentation

2009. 02. 04 CODELABOR Shin Sang Jae (codelabor@gmail)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Tutorial (Axis2 Web Service – Eclipse WTP 2.0) 2009. 02. 04 CODELABOR Shin Sang Jae (codelabor@gmail.com)

  2. Eclipse Configuration Setup • Install Axis2 • Eclipse > Window > Preferences > Web Services > Axis2 Preferences • Browse the Axis2 Runtime Location

  3. Eclipse Configuration Setup • Reference http://www.eclipse.org/webtools/community/tutorials/BottomUpAxis2WebService/bu_tutorial.html • Install Tomcat http://code.google.com/p/codelabor/source/browse/trunk/installation-guide/Installation%20Guide%20(Servlet%20Container%20-%20Tomcat%206.0.18).ppt • Eclipse > Window > Preferences > Server > Runtime Environments • Add > New Server Runtime Environment > Apache > Apache Tomcat v6.0

  4. Web Service Provider Create Project • Eclipse > File > New > Dynamic Web Project • Project Name: axis2-example • Dynamic Web Module version: 2.4

  5. Web Service Provider Create Package • Package: org.codelabor.example

  6. Web Service Provider Create Class • New > Class • Name: HelloWorld

  7. Web Service Provider Create Class • method: String sayHello(String name) • New > Web Services > Create Web service

  8. Web Service Provider Web Services Configuration • Change Web Service runtime: Apache Axis2

  9. Web Service Provider Web Services Configuration • Select Generate a default services.xml file • Start server

  10. Web Service Provider Web Services Configuration • axis2-example > Run As > Run on Server

  11. Web Service Provider Run Server • axis2-example > Run As > Run on Server

  12. Web Service Provider Check WSDL • Services > HelloWorld • WSDL URL: http://localhost:8080/axis2-example/services/HelloWorld?wsdl

  13. Web Service Consumer Web Services Configuration • New > Other > Web Service Client • Service definition http://localhost:8080/axis2-example/services/HelloWorld?wsdl

  14. Web Service Consumer Web Services Configuration • Change Web Service runtime: Apache Axis2

  15. Web Service Consumer Create Class • Port Name: HelloWorldHttpSoap11Endpoint

  16. Web Service Consumer Create Class • New > Class • Name: HelloWorldClient • Check public static void main(String[] args)

  17. Web Service Consumer Test Client • Code / Test Client

More Related