[ http://issues.apache.org/jira/browse/AXIS2-625?page=all ]
Oshani Seneviratne updated AXIS2-625:
-------------------------------------
Attachment: JavaScriptClient.java
> Deploying a Javascript service in Axis2
> ---------------------------------------
>
> Key: AXIS2-625
> URL: http://issues.apache.org/jira/browse/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
> Attachments: JavaScriptClient.java, JavaScriptService.aar,
> JavaScriptService.patch
>
> 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:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira