Exercises axis2-services

44 views

Published on

WEB SERVICES

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
44
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Exercises axis2-services

  1. 1. http://www.coreservlets.com Apache Axis2: Services 1. Register the Apache Axis2 location with Eclipse. Window --> Preferences --> Web Services --> Axis2 Preferences. For “Axis2 runtime location”, point at C:axis2-1.4 (or whatever location you used when you installed Axis2). 2. Make a new Dynamic Web Project and add in the Axis2 facet. 3. Make a simple bean with two methods: randomNum1 (no arguments, returns a ran- dom double between 0 and 1) and randomNum2 (takes a double as an argument, returns a random double between 0 and that number). 4. Make a Web Service from that bean. 5. Verify that the service is deployed. http://localhost/projectName/, then click on “axis2-web”, then “Services”. 6. Test the two operations. http://localhost/projectName/services/ClassName/randomNum1 http://localhost/projectName/services/ClassName/randomNum2?paramName=100 7. View the automatically generated WSDL file. http://localhost/projectName/services/ClassName?wsdl

×