This service should be initialized from the application.spec file, e.g.
The methods in the service classes must have a @webservice doc-comment property. In addition, these classes must have a default constructor. For example,
class HelloService
{
To call the methods of the these class from the client javascript side, do the following.
<script type="text/javascript">
//<![CDATA[
var response =
{
sayHello : function(result, output)
{
alert(result);
}
}
var helloService = new HelloService(response);
helloService.sayHello("Wei!"); //call remote method in async mode