Building custom interfaces
Web Service Import Sets and Direct Web Services provide a simple way to have a remote system send or retrieve data from your instance. However, beyond specifying the fields in import sets, the methods and schema are not configurable. What if you wanted a more flexible system?
Creating scripted services
ServiceNow supports both SOAP and REST scripted web services:
- SOAP scripted web services have two related lists, which contain the input and output parameters. These are used to generate a WSDL with a single method. A single script field determines the processing. In it, the input parameters are represented with a variable called
request
, while the output parameters with a variable calledresponse
.
- REST scripted APIs are more sophisticated. They support functionality such as versioning and flexible security and can work with information supplied in headers, the body, parameters, and much more-make as many methods as you want! As before, the scripts use the
request
and...