Class ScriptReceiver

  • All Implemented Interfaces:
    MessageReceiver

    public class ScriptReceiver
    extends AbstractInOutMessageReceiver
    An Axis2 MessageReceiver for invoking script language functions. The scripting support uses the Apache Bean Scripting Framework (BSF) so the script may be written in any language supported by BSF. There are two ways of defining the script, either in a seperate file or embedded in-line within the services.xml file. This example shows a services.xml using a seperate script file: ... scripts/myScript.js This example shows a JavaScript function embedded within a services.xml file: ... The script language is determined by the file name suffix when using scripts in seperate files or the script parameter name suffix when using inline scripts.