From e1539a531da3192dac843520d77c8c76e407a402 Mon Sep 17 00:00:00 2001 From: lresende Date: Sat, 21 Nov 2009 07:55:07 +0000 Subject: Moving 1.x tags git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@882849 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/samples/sca/helloworldjsclient/readme.htm | 110 +++++++++++++++++++++ 1 file changed, 110 insertions(+) create mode 100644 sca-java-1.x/tags/java-M1-20060522/java/samples/sca/helloworldjsclient/readme.htm (limited to 'sca-java-1.x/tags/java-M1-20060522/java/samples/sca/helloworldjsclient/readme.htm') diff --git a/sca-java-1.x/tags/java-M1-20060522/java/samples/sca/helloworldjsclient/readme.htm b/sca-java-1.x/tags/java-M1-20060522/java/samples/sca/helloworldjsclient/readme.htm new file mode 100644 index 0000000000..5aa9dbc3d5 --- /dev/null +++ b/sca-java-1.x/tags/java-M1-20060522/java/samples/sca/helloworldjsclient/readme.htm @@ -0,0 +1,110 @@ + + + + + + + + + + + + + + + + + + + + + + + + Tuscany Hello World JS WS Client Sample + + + + + + + +

Tuscany Hello World JS WS Client Sample

+ + + +

Overview

+ + + +

The Tuscany hello world JS client WS sample shows using the Tuscany SCA + runtime in a Tomcat environment providing a client for the Tuscany helloworld WS samples, helloworldws and helloworlde4xws.

+

Location

+This sample is located in the samples\sca\helloworldjsclient directory. + + + +

Setup

+Set up your server as described in the Tomcat +Setup.  If +you are not configuring with the acceptance test the server, you will +need to add sample-helloworldjsclient-incubating-M1.war +to your Tomcat's webapp directory. + + +

Running

+ +Once you've started your web server, use your browse to view the +following URL: http://localhost:8080/sample-helloworldjsclient/ +
+ +

Code Overview

+The source files are physically organized as shown below:
+
+
+---main
+---resources
¦ ¦ sca.module
¦ ¦
¦ +---wsdl
¦ helloworld.wsdl
¦
+---webapp
¦ HelloWorldClient.html
¦
+---WEB-INF
web.xml
+ +

+ + + + + + + + + + + + + + + +
+sca.module +Defines the SCA module, and +entryPoints which are wired directly to externalServices for each of the web services.
helloworld.wsdlWSDL for the service.
HelloWorldClient.htmlThe HTML page for the client. This includes a JavaScript script which uses the SCA JSON-RPC support to invoke methods on the SCA entryPoints.
web.xmlStandard J2EE web application's web.xml
+ +

+There isn't much code in this sample, only the script in the HTML for the page, and even that script is fairly simple. It demonstrates how simple SCA and its assembly model can make component implementations. +

+ + + -- cgit v1.2.3