Scripted web service example

reference brazil Updated Sep 10, 2026 1 min read r_StaticWSDLScriptedWebService.md
Raw file servicenow.com

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

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

Parent Topic:Create a scripted web service using a static WSDL

Search documentation
Search document titles and file paths on the brazil branch