Contents Hide
function handle(request)
{
ScriptSession.logInfo("Message received : " + request.getMessageName()) ;
msg = request.getParam("message") ;
response = new WebMessage();
response.createMessage("ECHO");
response.addParam("message", msg);
return response;
}
Note:
This function will be initiated by a Web Service Caller, with the request originally a SOAP message, deserialised into a BrightServer WebMessage for processing by the user defined script.
When called, the Web Service script will print "Message received : " and the name of the script to BrightServer's log (if in INFO or higher)
The script will then create a WebMessage response titled "ECHO" with the same message body text sent and return it on completion
The returned response will then be passed back to the Web Service Caller, sent as a SOAP HTTP response.