[i] Environment Setup :
1. JDK
2. Eclipse
3. Apache Tomcat
4. Axis2
Step 1 : Install JDK and Eclipse and setup Java Environment
in Eclipse.
Step 2 : Add Apache Tomcat as Follows,
Window > Preferences > Serever > Runtime Environments > Add
Step 3 : Add Axis2 as Follows,
Window >> Preferences >> Web Services >> Axis2 Preferences
Step 4 : Set Server and Run-time
[ii] Web Service Project Creation :
Step 1 : Create Dynamic Web Project
Step 2 : Click on Modify button in Configuration section in above
window and tick Axis2 web service and ok.
[iii] Web Service Class :
Step 1 : Create a Java Class within a package in Java SRC package
in web service project and add following code.
package com.jayan.ws;
public class HelloWorldWS {
public String serviceHello(String name) {
return "Hi !!! " + name;
}
}
Step 2 : Then right click on that class and go to web service
and select create web service and on popup window
then tick monitor the web service as follows,
Step 3 : Then go though that window using next button and ok
and finally run the project using Run on Server and
then get your web service as follows,
Step 4 : Then click on services and that will display your available
services
-- -- > That's all folks.... Again meet you with a web service client.
1. JDK
2. Eclipse
3. Apache Tomcat
4. Axis2
Step 1 : Install JDK and Eclipse and setup Java Environment
in Eclipse.
Step 2 : Add Apache Tomcat as Follows,
Window > Preferences > Serever > Runtime Environments > Add
Step 3 : Add Axis2 as Follows,
Window >> Preferences >> Web Services >> Axis2 Preferences
Step 4 : Set Server and Run-time
[ii] Web Service Project Creation :
Step 1 : Create Dynamic Web Project
Step 2 : Click on Modify button in Configuration section in above
window and tick Axis2 web service and ok.
[iii] Web Service Class :
Step 1 : Create a Java Class within a package in Java SRC package
in web service project and add following code.
package com.jayan.ws;
public class HelloWorldWS {
public String serviceHello(String name) {
return "Hi !!! " + name;
}
}
Step 2 : Then right click on that class and go to web service
and select create web service and on popup window
then tick monitor the web service as follows,
Step 3 : Then go though that window using next button and ok
and finally run the project using Run on Server and
then get your web service as follows,
Step 4 : Then click on services and that will display your available
services
-- -- > That's all folks.... Again meet you with a web service client.
good tutorial..keep it up.
ReplyDeleteUseful blog :)
ReplyDeletegood one...
ReplyDeleteGood guide for Axis web services !!!
ReplyDelete