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.
Request Response

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.

Request Response

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

None Yet.
Dojo Debug: