---
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


---

# Scripting outbound SOAP

# Scripting outbound SOAP {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

You can send outbound SOAP requests from any
place in the ServiceNow AI Platform where
scripting is allowed.
For detailed API information about the server-side SOAPMessageV2 and SOAPResponseV2 APIs,
see the API documentation on [developer.servicenow.com](https://developer.servicenow.com/app.do#!/home). For additional tips and best
practices, see the [Outbound REST Web Services RESTMessageV2 and SOAPMessageV2
execute() vs executeAsync() Best Practices \[KB0694711\]](https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0694711) article in the Now Support Knowledge Base.
* **[Preview a SOAP message script](https://servicenow-prod.fluidtopics.net/h972Tn1054jlneK3QBhf9Q)**   
  Generate a sample script to send the SOAP message.
* **[Direct SOAPMessageV2 example](https://servicenow-prod.fluidtopics.net/Q0oC78mmlaS0VIM_o4HTZw)**   
  You can send an outbound SOAP message directly to the endpoint.
* **[Asynchronous SOAPMessageV2 example](https://servicenow-prod.fluidtopics.net/v0q1hWnHjzDy5mH~yx8NjA)**   
  You can send an outbound SOAP message asynchronously.
* **[SOAPMessageV2 MID server example](https://servicenow-prod.fluidtopics.net/7aPfnb7IRscgj1OX6Q0Rlg)**   
  You can send an outbound SOAP message through a MID Server.
* **[Recordless SOAPMessageV2 example](https://servicenow-prod.fluidtopics.net/NNAaS_T1LCv2SqDVr6oyaQ)**   
  You can use the SOAPMessageV2() constructor with no parameters to define a SOAP message entirely in the script.

