diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2009-11-06 08:47:55 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2009-11-06 08:47:55 +0000 |
commit | 359ecb03b3e263a1347e7163f35dbdd9b90a7f63 (patch) | |
tree | 1b79fccf4ba3bdb52f014c327d05649c3c45161f /tags/java/sca/2.0-M4-RC3/samples/webapps/helloworld-rest/README | |
parent | f3771cd86a3b9a89c9c9b749c3601e2d9ce9439e (diff) |
Tag 2.0 M4 RC3
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@833319 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'tags/java/sca/2.0-M4-RC3/samples/webapps/helloworld-rest/README')
-rw-r--r-- | tags/java/sca/2.0-M4-RC3/samples/webapps/helloworld-rest/README | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/tags/java/sca/2.0-M4-RC3/samples/webapps/helloworld-rest/README b/tags/java/sca/2.0-M4-RC3/samples/webapps/helloworld-rest/README new file mode 100644 index 0000000000..00568d9bb0 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/samples/webapps/helloworld-rest/README @@ -0,0 +1,37 @@ +Hello World REST Sample
+=======================
+
+Sample Overview
+---------------
+The service 'HelloWorldService' is exposed using the REST binding.
+
+helloworld-jsonrpc-webapp/
+ src/
+ main/
+ java/
+ helloworldjsonrpc/
+ HelloWorldService.java - service interface
+ HelloWorldServiceImpl.java - service implementation
+ ClientTestServiceWebapp.java - Test class; uses java.net.HttpURLConnection to make 'GET', 'PUT', 'POST requests
+ resources/
+ rest.composite - the SCA assembly for this sample
+ webapp
+ META-INF/
+ sca-contribution.xml - specifies the composite to be deployed
+ WEB-INF/
+ web.xml - defines the listener that starts up the
+ Tuscany SCA runtime
+ pom.xml - the Maven build file
+
+Build the sample using Maven.
+A war 'helloworld-rest-webapp.war' will be created in the target directory. Deploy it in your web container.
+You can access the service from the browser by making a simple GET request using the following URL:
+http://<host>:<port>/helloworld-rest-webapp/HelloWorldService/helloworld/getname
+
+Use the test class 'ClientTestServiceWebapp' to test PUT, POST operations.
+
+
+
+
+
+
|