diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2011-07-24 08:08:52 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2011-07-24 08:08:52 +0000 |
commit | e9d822e7626e331f293b6fe3567f88f1411e7a97 (patch) | |
tree | 2d68fe66cd15e23e01b57371a0310b6009ffa8cb /sca-java-2.x/trunk/samples/getting-started/helloworld-jsonrpc | |
parent | 355f131c3048341bbf230191d7b1d4117f84140c (diff) |
Update sample README
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1150290 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | sca-java-2.x/trunk/samples/getting-started/helloworld-jsonrpc/README | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/sca-java-2.x/trunk/samples/getting-started/helloworld-jsonrpc/README b/sca-java-2.x/trunk/samples/getting-started/helloworld-jsonrpc/README index 7f901fc77f..c197ddcd95 100644 --- a/sca-java-2.x/trunk/samples/getting-started/helloworld-jsonrpc/README +++ b/sca-java-2.x/trunk/samples/getting-started/helloworld-jsonrpc/README @@ -1,27 +1,27 @@ -Tuscany - Getting Started - Helloworld Sample
----------------------------------------------
+Tuscany - Getting Started - Helloworld JSONRPC Sample
+-----------------------------------------------------
-This sample demonstrates a simple helloworld style SCA application and how to run that with Tuscany.
+This sample extends the helloworld sample to make the helloworld service available as a JSON-RPC endpoint.
+JSON-RPC is a protocol for doing remote procedure calls encoded in JSON.
-See the README in the top-level samples folder for general information on the Tuscany samples.
+The changes to the helloworld sample are:
+- update the pom.xml with the additional dependencies
+- update the composite to use the JSON-RPC binding
-This project creates an SCA contribution with a deployable composite named helloworld.composite.
-The composite defines an SCA component, HelloworldComponent, which provides a Helloworld service,
-the component is implemented by a Java class.
-
-You can use the contribution by starting the composite in the Tuscany Shell. To do that run the
-following command in the helloworld folder:
+As with all the getting-started samples you can run this sample with:
mvn tuscany:run
-
+Then at a web browser enter the following URL:
+(JSON-RPC aruguments are base64 encoded, so in this URL "WyJXb3JsZCJd" unecoded is "["World"]")
http://localhost:8080/HelloworldComponent/Helloworld?method=sayHello¶ms=WyJXb3JsZCJd&id=1
-
+which should return a page saying:
{"id":1,"result":"Hello World"}
+
|