{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":1322,"path":"api-reference/web-services/r_ScriptingOutboundSOAP.md","title":"Scripting outbound SOAP","bundle":null,"doc_type":null,"release":"australia","body":"\n# Scripting outbound SOAP\n\nYou can send outbound SOAP requests from any place in the ServiceNow AI Platform where scripting is allowed.\n\nFor 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.\n\n-   **[Preview a SOAP message script](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/web-services/c_UseASOAPMessageInAScript.md)**  \nGenerate a sample script to send the SOAP message.\n-   **[Direct SOAPMessageV2 example](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/web-services/r_DirectSOAPMessageV2Example.md)**  \nYou can send an outbound SOAP message directly to the endpoint.\n-   **[Asynchronous SOAPMessageV2 example](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/web-services/r_AsyncronousSOAPMessageV2Example.md)**  \nYou can send an outbound SOAP message asynchronously.\n-   **[SOAPMessageV2 MID server example](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/web-services/r_SOAPMessageV2MIDServerExample.md)**  \nYou can send an outbound SOAP message through a MID Server.\n-   **[Recordless SOAPMessageV2 example](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/web-services/r_RecordlessSOAPMessageV2Example.md)**  \nYou can use the SOAPMessageV2\\(\\) constructor with no parameters to define a SOAP message entirely in the script.\n\n**Parent Topic:**[Outbound SOAP web service](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/web-services/c_OutboundSOAPWebService.md)\n\n"}}