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

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu API Reference

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# Preview a SOAP message script

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

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](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/fj73pS1Sp0ypxq3F1UcZGA "A JavaScript object wrapper for parsing and extracting XML data from an XML document (String).") or with [gs.getXMLText](https://servicenow-prod.fluidtopics.net/RgXT711o4n9v_sJ0uKmMsA#c_GlideSystem "The GlideSystem API provides methods for retrieving information.") and [gs.getXMLNodeList](https://servicenow-prod.fluidtopics.net/RgXT711o4n9v_sJ0uKmMsA#c_GlideSystem "The GlideSystem API provides methods for retrieving information.").

