axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oshani Seneviratne (JIRA)" <>
Subject [jira] Created: (AXIS2-625) Deploying a Javascript service in Axis2
Date Thu, 27 Apr 2006 07:56:03 GMT
Deploying a Javascript service in Axis2

         Key: AXIS2-625
     Project: Apache Axis 2.0 (Axis2)
        Type: New Feature

 Environment: Operating system used in the devlopment: Ubuntu Breezy Badger
Software platform: JDK 1.5
    Reporter: Oshani Seneviratne
    Priority: Trivial

It is now possible to deploy a web service written entirely in javascript on Axis2.  When
implementing the javascript service, the user will have the option of using E4X syntax, which
extends the semantics of familiar Javascript operators and manipulate the XML data with ease.

This feature needs 2 classes (org.sample.javascript.JavaScriptReceiver and org.sample.javascript.JavaScriptEngine)
and the js.jar library from Mozilla Rhino in addition to the Axis2 libraries.

The JavaScriptReceiver processes the incoming message and extracts the javascrtipt function
name[1] , the arguments / payload to be sent to the javascript service and the javascript
source stream[2]. It then calls the JavaScriptEngine which uses the Mozilla Rhino API to process
the javascript file. The JavaScriptEngine returns an xml string object to the JavaScriptReceiver
and the latter encodes the result and sends the outMessage.

[1] The operation the client requests.
[2] This is similar to the ServiceClass in a Java service.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message