Tuscany Hello World JavaScript/E4X WS Sample

Overview

The Tuscany hello world JavaScript/E4X WS sample shows using the Tuscany SCA runtime in a Tomcat environment providing a web service implemented in JavaScript/E4X.

Location

This sample is located in the samples\sca\helloworlde4xws 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 helloworlde4xws-incubating-M1.war to your Tomcat's webapp directory.

Running

This service can be invoked by the Tuscany SCA helloworldjsclient sample.

Code Overview

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


sca.module Defines the SCA module, entryPoint and component. Defines for the HelloWorldComponent component and the JavaScript script that implements the component. For the entryPoint it defines WSDL for the service, and wires the service to the HelloWorldComponent
HelloWorldImpl.componentType The .componentType side file describing the service
HelloWorldImpl.js The JavaScript implementation of the service
helloworld.wsdl WSDL for the service.
web.xml Standard J2EE web application's web.xml