---
sourceDocument: Australia API Reference
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/api-reference

 Release :

    - australia

ft:locale :

    - en-US

ft:publication_title :

    - Australia API Reference

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# Preview a SOAP message script

# Preview a SOAP message script {#ariaid-title1}

Release version: Australia  
Updated March 12, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read  
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](https://servicenow-prod.fluidtopics.net/Inig2pJe8HT9ZW5znWqQqA "A JavaScript object wrapper for parsing and extracting XML data from an XML document (String).") or with [gs.getXMLText](https://servicenow-prod.fluidtopics.net/UXADUvPefaxebsUlbwbIlw#c_GlideSystem "The GlideSystem API provides methods for retrieving information.") and [gs.getXMLNodeList](https://servicenow-prod.fluidtopics.net/UXADUvPefaxebsUlbwbIlw#c_GlideSystem "The GlideSystem API provides methods for retrieving information.").

