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.

Table 1. Parameters
Name Type Description
timeoutMs Number The amount of time to wait for a response from the web service provider, in milliseconds.
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.setHttpTimeout(6000);