The Tuscany Web services Helloworld sample shows how to expose an SCA component as a Web service endpoint by wiring the component to an SCA service which uses a Web service binding.
This sample is located in the samples\webapp\helloworldws directory. All the following commands should be issued while working in the sample directory.
Obtain the following prerequisites and install according to their documentation.
To build the sample issue :
mvn
This should result in the creation of the war file target\sample-helloworldws.war
If you have enabled remote deployment in Tomcat by adding the line:
<user username="admin" password=""
roles="manager"/>
into <tomcat dir>\conf\tomcat-users.xml you can deploy the WARs to Tomcat using the tomcat-maven-plugin:
mvn tomcat:deploy
Alternatively you can copy the WAR files to Tomcat's webapps directory. Copy target\sample-helloworldws.war <tomcat dir>/webapps/.
Start the tomcat server by issuing the following command ind the <tomcat dir>\bin directory:
startup
Once you've started your web server, following the directions in client side demo to execute the service.