SOAPMessageV2 - SOAPMessageV2(String soapMessage, String soapFunction) Instantiate a SOAPMessageV2 object from a SOAP message record and a function associated with that record. Values such as the endpoint, authentication, or MID Server settings from the SOAP message record apply to this object. Table 1. Parameters Name Type Description soapMessage String The SOAP message record you want to use as the base for this object. soapFunction String The SOAP function you want to execute. Available SOAP functions depend on the WSDL supplied by the web service provider. var sm = new sn_ws.SOAPMessageV2("StockQuote","GetQuote"); //Might throw exception if message doesn't exist or not visible due to scope.