Scripted web service example
reference brazil Updated Sep 10, 2026 1 min read r_StaticWSDLScriptedWebService.md
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
29 lines · 1.2 KB
---
title: Scripted web service example
description: This example demonstrates the processing script for the FakeStockValue web service.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/api-reference/web-services/r\_StaticWSDLScriptedWebService.html
release: brazil
product: Web Services
classification: web-services
topic_type: reference
last_updated: "2026-09-10"
reading_time_minutes: 1
breadcrumb: [Create a service, Creating with static WSDLs, Scripted Services, SOAP web service, Inbound, Web services, API implementation, API implementation and reference]
---
# 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" ) ; }
```
**Parent Topic:**[Create a scripted web service using a static WSDL](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/api-reference/web-services/t_CreateStaticWSDLScriptWebService.md)
| title | Scripted web service example |
| description | This example demonstrates the processing script for the FakeStockValue web service. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/api-reference/web-services/r\_StaticWSDLScriptedWebService.html |
| release | brazil |
| product | Web Services |
| classification | web-services |
| topic_type | reference |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | Create a serviceCreating with static WSDLsScripted ServicesSOAP web serviceInboundWeb servicesAPI implementationAPI implementation and reference |