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");