Simple Webservice with Eclipse and JBoss
Steps
1. Download axis2-1.4.1
2. Set Jboss 4.0 ( can point to jboss4.0.4 GA)
3. eclipse-jee-galileo-SR1-win32
4. Create a dynamic web project with Jboss 4.0 as the run time server.
5. Create a class wtp.Converter.
package wtp;
public class Converter
{
public float celsiusToFarenheit ( float celsius )
{
return (celsius * 9 / 5) + 32;
}
public float farenheitToCelsius ( float farenheit )
{
return (farenheit - 32) * 5 / 9;
}
}
6. Right Click on Converter and WebService > Create Webservice.
7. Select Axis and Jboss and Bottom Java bean Webservice. Check on publish webservice, Monitor webservice.
7.1 Select Client too.
8. Finish.
9. Below web-inf folder there is wsdl folder which contains the wsdl file.
1. Download axis2-1.4.1
2. Set Jboss 4.0 ( can point to jboss4.0.4 GA)
3. eclipse-jee-galileo-SR1-win32
4. Create a dynamic web project with Jboss 4.0 as the run time server.
5. Create a class wtp.Converter.
package wtp;
public class Converter
{
public float celsiusToFarenheit ( float celsius )
{
return (celsius * 9 / 5) + 32;
}
public float farenheitToCelsius ( float farenheit )
{
return (farenheit - 32) * 5 / 9;
}
}
6. Right Click on Converter and WebService > Create Webservice.
7. Select Axis and Jboss and Bottom Java bean Webservice. Check on publish webservice, Monitor webservice.
7.1 Select Client too.
8. Finish.
9. Below web-inf folder there is wsdl folder which contains the wsdl file.
No comments:
Post a Comment