Thank you for your feedback.
Form temporarily unavailable. Please try again or contact docfeedback@servicenow.com to submit your comments.

SOAPMessageV2 - getRequestHeader(String headerName)

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

SOAPMessageV2 - getRequestHeader(String headerName)

Get the value for an HTTP header specified by the SOAP client.

By default, this method cannot return the value for a header set automatically by the system. To grant this method access to all headers, set the property glide.http.log_debug to true.

Table 1. Parameters
Name Type Description
headerName String The request header you want to get the value for.
Table 2. Returns
Type Description
String The value of the specified header.
var sm = new sn_ws.SOAPMessageV2("StockQuote","GetQuote"); //Might throw exception if message doesn't exist or not visible due to scope.
var header = sm.getRequestHeader("Accept");
Feedback