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

SOAPMessageV2 - setRequestHeader(String headerName, String headerValue)

Log in to subscribe to topics and get notified when content changes.

SOAPMessageV2 - setRequestHeader(String headerName, String headerValue)

Set an HTTP header in the SOAP message to the specified value.

Table 1. Parameters
Name Type Description
headerName String The name of the header.
headerValue String The value to assign to the specified header.
Table 2. Returns
Type Description
void
var sm = new sn_ws.SOAPMessageV2("StockQuote","GetQuote"); //Might throw exception if message doesn't exist or not visible due to scope.
sm.setRequestHeader("Accept","Application/json");
Feedback