Scripted web service example

This example demonstrates the processing script for the FakeStockValue web service.

var vProcessor  = new FakeStockValue (soapRequestXML ) ;
 
  var responseElement  = vProcessor. process ( ) ; if (responseElement  != null ) {
  response. soapResponseElement = responseElement ; } else {
  response. soapResponseElement = vProcessor. generateSoapFault ( "unknown error" ) ; }