Contents ServiceNow Platform Previous Topic Next Topic SOAPMessageV2 Subscribe Log in to subscribe to topics and get notified when content changes. ... SAVE AS PDF Selected Topic Topic & Subtopics All Topics in Contents Share SOAPMessageV2 The SOAPMessageV2 API allows you to send an outbound SOAP message using JavaScript. Use the SOAPResponseV2 API to manage the response returned by the SOAP provider. You can use this API in scoped applications, or within the global scope. SOAPMessageV2 - execute()Send the SOAP message to the endpoint.SOAPMessageV2 - executeAsync()Send the SOAP message to the ECC queue.SOAPMessageV2 - getEndpoint()Get the endpoint for the SOAP message.SOAPMessageV2 - getRequestBody()Get the content of the SOAP message body.SOAPMessageV2 - getRequestHeader(String headerName)Get the value for an HTTP header specified by the SOAP client.SOAPMessageV2 - getRequestHeaders()Get HTTP headers that were set by the SOAP client and the associated values.SOAPMessageV2 - setBasicAuth(String userName, String userPass)Set basic authentication headers for the SOAP message.SOAPMessageV2 - setEccCorrelator(String correlator)Associate outbound requests and the resulting response record in the ECC queue.SOAPMessageV2 - setEccParameter(String name, String value)Override a value from the database by writing to the SOAP message payload.SOAPMessageV2 - setEndpoint(String endpoint)Set the endpoint for the SOAP message.SOAPMessageV2 - setHttpTimeout(Number timeoutMs)Set the amount of time the SOAP message waits for a response from the web service provider before the request times out.SOAPMessageV2 - setMIDServer(String midServerName)Configure the SOAP message to be sent through a MID Server.SOAPMessageV2 - setMutualAuth(String profileName)Set the mutual authentication protocol profile for the SOAP message.SOAPMessageV2 - setRequestBody(String requestBody)Set the body content to send to the web service provider.SOAPMessageV2 - setRequestHeader(String headerName, String headerValue)Set an HTTP header in the SOAP message to the specified value.SOAPMessageV2 - setSOAPAction(String soapAction)Define the SOAP action this SOAP message performs.SOAPMessageV2 - setStringParameter(String name, String value)Set a variable with the specified name from the SOAP message record to the specified value.SOAPMessageV2 - setStringParameterNoEscape(String name, String value)Set a variable with the specified name from the SOAP message record to the specified value.SOAPMessageV2 - setWSSecurity(String keystoreId, String keystoreAlias, String keystorePassword, String certificateId)Sets web service security values for the SOAP message.SOAPMessageV2 - SOAPMessageV2()Instantiates an empty SOAPMessageV2 object.SOAPMessageV2 - SOAPMessageV2(String soapMessage, String soapFunction)Instantiate a SOAPMessageV2 object from a SOAP message record and a function associated with that record.Asyncronous SOAPMessageV2 exampleYou can send a SOAP message asynchronously.Direct SOAPMessageV2 exampleYou can send a SOAP message directly to the endpoint.Recordless SOAPMessageV2 exampleYou can use the SOAPMessageV2() constructor with no parameters to define a SOAP message entirely in the script.SOAPMessageV2 MID server exampleYou can send a SOAP message through a MID Server.Related ConceptsSOAPResponseV2Related ReferenceDirect SOAPMessageV2 exampleRecordless SOAPMessageV2 exampleAsyncronous SOAPMessageV2 exampleSOAPMessageV2 MID server example On this page Send Feedback Previous Topic Next Topic
SOAPMessageV2 The SOAPMessageV2 API allows you to send an outbound SOAP message using JavaScript. Use the SOAPResponseV2 API to manage the response returned by the SOAP provider. You can use this API in scoped applications, or within the global scope. SOAPMessageV2 - execute()Send the SOAP message to the endpoint.SOAPMessageV2 - executeAsync()Send the SOAP message to the ECC queue.SOAPMessageV2 - getEndpoint()Get the endpoint for the SOAP message.SOAPMessageV2 - getRequestBody()Get the content of the SOAP message body.SOAPMessageV2 - getRequestHeader(String headerName)Get the value for an HTTP header specified by the SOAP client.SOAPMessageV2 - getRequestHeaders()Get HTTP headers that were set by the SOAP client and the associated values.SOAPMessageV2 - setBasicAuth(String userName, String userPass)Set basic authentication headers for the SOAP message.SOAPMessageV2 - setEccCorrelator(String correlator)Associate outbound requests and the resulting response record in the ECC queue.SOAPMessageV2 - setEccParameter(String name, String value)Override a value from the database by writing to the SOAP message payload.SOAPMessageV2 - setEndpoint(String endpoint)Set the endpoint for the SOAP message.SOAPMessageV2 - setHttpTimeout(Number timeoutMs)Set the amount of time the SOAP message waits for a response from the web service provider before the request times out.SOAPMessageV2 - setMIDServer(String midServerName)Configure the SOAP message to be sent through a MID Server.SOAPMessageV2 - setMutualAuth(String profileName)Set the mutual authentication protocol profile for the SOAP message.SOAPMessageV2 - setRequestBody(String requestBody)Set the body content to send to the web service provider.SOAPMessageV2 - setRequestHeader(String headerName, String headerValue)Set an HTTP header in the SOAP message to the specified value.SOAPMessageV2 - setSOAPAction(String soapAction)Define the SOAP action this SOAP message performs.SOAPMessageV2 - setStringParameter(String name, String value)Set a variable with the specified name from the SOAP message record to the specified value.SOAPMessageV2 - setStringParameterNoEscape(String name, String value)Set a variable with the specified name from the SOAP message record to the specified value.SOAPMessageV2 - setWSSecurity(String keystoreId, String keystoreAlias, String keystorePassword, String certificateId)Sets web service security values for the SOAP message.SOAPMessageV2 - SOAPMessageV2()Instantiates an empty SOAPMessageV2 object.SOAPMessageV2 - SOAPMessageV2(String soapMessage, String soapFunction)Instantiate a SOAPMessageV2 object from a SOAP message record and a function associated with that record.Asyncronous SOAPMessageV2 exampleYou can send a SOAP message asynchronously.Direct SOAPMessageV2 exampleYou can send a SOAP message directly to the endpoint.Recordless SOAPMessageV2 exampleYou can use the SOAPMessageV2() constructor with no parameters to define a SOAP message entirely in the script.SOAPMessageV2 MID server exampleYou can send a SOAP message through a MID Server.Related ConceptsSOAPResponseV2Related ReferenceDirect SOAPMessageV2 exampleRecordless SOAPMessageV2 exampleAsyncronous SOAPMessageV2 exampleSOAPMessageV2 MID server example
SOAPMessageV2 The SOAPMessageV2 API allows you to send an outbound SOAP message using JavaScript. Use the SOAPResponseV2 API to manage the response returned by the SOAP provider. You can use this API in scoped applications, or within the global scope. SOAPMessageV2 - execute()Send the SOAP message to the endpoint.SOAPMessageV2 - executeAsync()Send the SOAP message to the ECC queue.SOAPMessageV2 - getEndpoint()Get the endpoint for the SOAP message.SOAPMessageV2 - getRequestBody()Get the content of the SOAP message body.SOAPMessageV2 - getRequestHeader(String headerName)Get the value for an HTTP header specified by the SOAP client.SOAPMessageV2 - getRequestHeaders()Get HTTP headers that were set by the SOAP client and the associated values.SOAPMessageV2 - setBasicAuth(String userName, String userPass)Set basic authentication headers for the SOAP message.SOAPMessageV2 - setEccCorrelator(String correlator)Associate outbound requests and the resulting response record in the ECC queue.SOAPMessageV2 - setEccParameter(String name, String value)Override a value from the database by writing to the SOAP message payload.SOAPMessageV2 - setEndpoint(String endpoint)Set the endpoint for the SOAP message.SOAPMessageV2 - setHttpTimeout(Number timeoutMs)Set the amount of time the SOAP message waits for a response from the web service provider before the request times out.SOAPMessageV2 - setMIDServer(String midServerName)Configure the SOAP message to be sent through a MID Server.SOAPMessageV2 - setMutualAuth(String profileName)Set the mutual authentication protocol profile for the SOAP message.SOAPMessageV2 - setRequestBody(String requestBody)Set the body content to send to the web service provider.SOAPMessageV2 - setRequestHeader(String headerName, String headerValue)Set an HTTP header in the SOAP message to the specified value.SOAPMessageV2 - setSOAPAction(String soapAction)Define the SOAP action this SOAP message performs.SOAPMessageV2 - setStringParameter(String name, String value)Set a variable with the specified name from the SOAP message record to the specified value.SOAPMessageV2 - setStringParameterNoEscape(String name, String value)Set a variable with the specified name from the SOAP message record to the specified value.SOAPMessageV2 - setWSSecurity(String keystoreId, String keystoreAlias, String keystorePassword, String certificateId)Sets web service security values for the SOAP message.SOAPMessageV2 - SOAPMessageV2()Instantiates an empty SOAPMessageV2 object.SOAPMessageV2 - SOAPMessageV2(String soapMessage, String soapFunction)Instantiate a SOAPMessageV2 object from a SOAP message record and a function associated with that record.Asyncronous SOAPMessageV2 exampleYou can send a SOAP message asynchronously.Direct SOAPMessageV2 exampleYou can send a SOAP message directly to the endpoint.Recordless SOAPMessageV2 exampleYou can use the SOAPMessageV2() constructor with no parameters to define a SOAP message entirely in the script.SOAPMessageV2 MID server exampleYou can send a SOAP message through a MID Server.Related ConceptsSOAPResponseV2Related ReferenceDirect SOAPMessageV2 exampleRecordless SOAPMessageV2 exampleAsyncronous SOAPMessageV2 exampleSOAPMessageV2 MID server example