web_service_cancel_security_saml

Note: This function is supported for legacy purposes. For new scripts, we recommend that you use web_service_cancel_security_saml.

Web Services Functions (SOAP, WEB_SERVICE, Silverlight)

Cancels the settings from the preceding call to web_service_set_security_saml.

int web_service_cancel_security_saml( );

After a call to web_service_cancel_security_saml, the tokens specified in the previous call to web_service_set_security_saml are no longer added when soap_request and web_service_call are invoked.

Return Values

This function returns LR_PASS (0) on success, and LR_FAIL (1) on failure. Note that in many cases, this return value indicates the technical success of the function, and not the result. For example, a function that registers a string to be found in a subsequent step returns LR_PASS to indicate that the registration was successful. This does not indicate that the string was found in the server response.

Parameterization

Parameterization is not applicable to this function.

Example

This example shows getting a SAML token, using it in a service request, and then canceling it.

web_service_set_security_saml(
  "ISsuerUrl=http://myserver/SamlSecurityTokenService/SamlTokenIssuer.ashx",
 "Username=myserver\\administrator",
 "Password=abcabc",
  "PasswordOptions=SendPlainText",
  "CertStoreLocation=CurrentUser",
  "CertStoreName=AddressBook", 
  "CertSubjectName=CN=WSE2QuickStartServer", 
  "PolicyFile=samlPolicy.config",
  LAST );

web_service_call( 
    "StepName=HelloWorld_101",
    "SOAPMethod=Service|ServiceSoap|HelloWorld",
    "ResponseParam=response",
    "WSDL=http://localhost/SampleService/Service.asmx?wsdl",
    "URL=http://myserver/SampleService/Service.asmx",
    "UseWSDLCopy=1",
    "Snapshot=t1153124794.inf",
    BEGIN_ARGUMENTS,
    END_ARGUMENTS,
    BEGIN_RESULT,
    "HelloWorldResult=Param_HelloWorldResult",
    END_RESULT,
    LAST );

web_service_cancel_security_saml();