From bdd0a41aed7edf21ec2a65cfa17a86af2ef8c48a Mon Sep 17 00:00:00 2001 From: dims Date: Tue, 17 Jun 2008 00:23:01 +0000 Subject: Move Tuscany from Incubator to top level. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@668359 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/webapp/HelloWorldJSONRPC.html | 134 +++++++++++++++++++++ .../src/main/webapp/META-INF/sca-contribution.xml | 26 ++++ .../src/main/webapp/WEB-INF/web.xml | 46 +++++++ .../helloworld-jsonrpc/src/main/webapp/style.css | 4 + 4 files changed, 210 insertions(+) create mode 100644 branches/sca-java-0.90/samples/helloworld-jsonrpc/src/main/webapp/HelloWorldJSONRPC.html create mode 100644 branches/sca-java-0.90/samples/helloworld-jsonrpc/src/main/webapp/META-INF/sca-contribution.xml create mode 100644 branches/sca-java-0.90/samples/helloworld-jsonrpc/src/main/webapp/WEB-INF/web.xml create mode 100644 branches/sca-java-0.90/samples/helloworld-jsonrpc/src/main/webapp/style.css (limited to 'branches/sca-java-0.90/samples/helloworld-jsonrpc/src/main/webapp') diff --git a/branches/sca-java-0.90/samples/helloworld-jsonrpc/src/main/webapp/HelloWorldJSONRPC.html b/branches/sca-java-0.90/samples/helloworld-jsonrpc/src/main/webapp/HelloWorldJSONRPC.html new file mode 100644 index 0000000000..a684143794 --- /dev/null +++ b/branches/sca-java-0.90/samples/helloworld-jsonrpc/src/main/webapp/HelloWorldJSONRPC.html @@ -0,0 +1,134 @@ + + + + Tuscany JSON-RPC HelloWorld Example + + + + + + + + + + + + + + + + +

Tuscany JSON-RPC HelloWorld Examples

+ + + + + + + + + + + + + + + +
Non-Dojo Example
+ This example uses the JavaScript served from + services/SCA/scripts + to make JSON-RPC requests to the service located at services/HelloWorldService. +
RequestResponse
+

+ Name please:     + + +

+ +
+
None Yet.
+
+ +
+ + + + + + + + + + + + + + + + + + +
Dojo Example
+

This example uses the Dojo Toolkit + to create a JavaScript object helloWorldService for the service at services/HelloWorldService + using Dojo's RPC classes + and providing them with services/HelloWorldService?smd + for Simple Method Description (SMD) input.

+

It then creates a Dojo button that will envoke the getGreetings method of the helloWorldService object.

+
RequestResponse
+
helloWorldService.getGreetings("Dojo").addCallback(contentCallBack);

+
+
None Yet.
+
+
Dojo Debug:
+
+ + + + + + + + diff --git a/branches/sca-java-0.90/samples/helloworld-jsonrpc/src/main/webapp/META-INF/sca-contribution.xml b/branches/sca-java-0.90/samples/helloworld-jsonrpc/src/main/webapp/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..be750ec461 --- /dev/null +++ b/branches/sca-java-0.90/samples/helloworld-jsonrpc/src/main/webapp/META-INF/sca-contribution.xml @@ -0,0 +1,26 @@ + + + + + + + diff --git a/branches/sca-java-0.90/samples/helloworld-jsonrpc/src/main/webapp/WEB-INF/web.xml b/branches/sca-java-0.90/samples/helloworld-jsonrpc/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000000..2c0c79726d --- /dev/null +++ b/branches/sca-java-0.90/samples/helloworld-jsonrpc/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,46 @@ + + + + + + + + Tuscany sample HelloWorld JSON-RPC + + + HelloWorldJSONRPC.html + + + + org.apache.tuscany.sca.webapp.TuscanyContextListener + + + + + TuscanyServlet + org.apache.tuscany.sca.webapp.TuscanyServlet + + + + TuscanyServlet + /services/* + + diff --git a/branches/sca-java-0.90/samples/helloworld-jsonrpc/src/main/webapp/style.css b/branches/sca-java-0.90/samples/helloworld-jsonrpc/src/main/webapp/style.css new file mode 100644 index 0000000000..7073905b11 --- /dev/null +++ b/branches/sca-java-0.90/samples/helloworld-jsonrpc/src/main/webapp/style.css @@ -0,0 +1,4 @@ +* { font-family: arial; } + +table, th, td { border: 2px solid blue; border-collapse: collapse; } +th { color: white; background-color: blue; } -- cgit v1.2.3