SOAPMessageV2 - setSOAPAction(String soapAction)

Define the SOAP action this SOAP message performs.

The WSDL for your web service provider lists SOAP actions you can perform. You must call this method when using the SOAPMessageV2() constructor with no parameters.

Table 1. Parameters
Name Type Description
soapAction String The SOAP action this SOAP message performs.
Table 2. Returns
Type Description
void
var sm = new sn_ws.SOAPMessageV2();
sm.setSOAPAction("GetQuote");
//construct SOAP message by specifying endpoint and auth
sm.execute();