Web Services Functions (Soap, WEB_SERVICE, Silverlight) > Alphabetical List of Functions > web_service_set_option


Example Web Services Functions (SOAP, WEB_SERVICE, Silverlight)

Sets an option before a call to a web service.

int web_service_set_option( const char *OptionName, const char *OptionValue );
OptionName The name of the web service option. Case sensitive.
OptionValue The value of the option. Not case sensitive.

The web_service_set_option function changes the settings for all following calls to a Web service.

This function is not recorded. Add it manually to the script before a web_service_call if you need one of these options:

Option Name Usage
DoNotValidateSecurity If server response includes a security token, the response may not match the ExpectedResponse argument to web_service_call. Set to true to ignore the security token.
ExcludeWseHeaders Set to true to disable sending WS-Addressing in a web_service_call.
HandleMIMEResponse Set to true if the SOAP response body is in MIME format.

Return Values

This function returns LR_PASS (0) on success, and LR_FAIL (1) on failure.


Standard parameterization is not available for this function.


web_service_set_option("DoNotValidateSecurity", "true"); 
web_service_call( "StepName=EchoBoolean_101",