Preview a SOAP message script

concept brazil Updated Sep 10, 2026 1 min read c_UseASOAPMessageInAScript.md
Raw file servicenow.com

Generate a sample script to send the SOAP message.

After you have developed and tested the SOAP message, click the Preview script usage related link in the SOAP Message Function form. The dialog box displays an example of how you can invoke the SOAP message from a script.

You can manipulate the resulting XML response body with XMLDocument or with GlideSystem - getXMLText(String xml, String xpathQuery) and GlideSystem - getXMLNodeList(String xml).

Parent Topic:Scripting outbound SOAP

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