Thank you for your feedback.
Form temporarily unavailable. Please try again or contact docfeedback@servicenow.com to submit your comments.
Versions
  • London
  • Kingston
  • Jakarta
  • Istanbul
  • Helsinki
  • Geneva
  • Store
Close

SOAPMessageV2 - setEndpoint(String endpoint)

SOAPMessageV2 - setEndpoint(String endpoint)

Set the endpoint for the SOAP message.

By default, the SOAP message uses the endpoint specified in the SOAP message record. Use this method to override the default. You must call this method when using the SOAPMessageV2() constructor with no parameters.

Table 1. Parameters
Name Type Description
endpoint String The URL of the SOAP web service provider you want to interface with.
Table 2. Returns
Type Description
void
var sm = new sn_ws.SOAPMessageV2();
sm.setEndpoint("http://web.service.endpoint");