TP3 SOA HelloWorld
TP3 SOA HelloWorld
This tutorial shows you how to create a web service using Eclipse and deploy it on the Tomcat server.
package tps.ws.deployment;
public class HelloWorld {
public String sayHello()
{ return( "Hello World ") ;} }
5. Right click on the HelloWorld class, select Web Sevices→Create Web service.
11. Select services. A list of available services is presented. Click on HelloWorld service to see the
corresponding WSDL file.
12. To invoke the sayHello operation, enter the following url in eclipse web service explorer
http://localhost:8080/WS_HelloWorld/services/HelloWorld/sayHello.
13. To access your service from your browser, right click on WS_HelloWorld,
then select Export→war file.
Browse to your tomcat Webapps folder and click Finish.
Start your server from your tomcat bin folder.
Then enter the following url http://localhost:8080/WS_HelloWorld/services/HelloWorld?wsdl
to access to the wsdl file.