web_service_cancel_security_saml_ex

Web Services Functions (SOAP, WEB_SERVICE, Silverlight)

Cancels the settings from the preceding call to web_service_set_security_saml_ex.

int web_service_cancel_security_saml_ex( );

After a call to web_service_cancel_security_saml_ex, the tokens specified in the previous call to the function, 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_ex("IssuerUrl=https://myserver/sts/STSWebHost/Saml20STSService.svc",	
	"Username=test", 
	"Password=test", 
	"TokenType=SAML2.0", 
	"KeyType=Bearer", 
	"AudienceUris=https://RelyingParty/*", 
	LAST);

web_service_call( "StepName=Add_101",
	"SOAPMethod=Calculator|WS2007FederationHttpBinding_ICalculator|Add",
	"ResponseParam=response",
	"Service=Calculator",	
	"ExpectedResponse=SoapResult",
	"Snapshot=t1568875776.inf",
	BEGIN_ARGUMENTS,
	"n1=1",
	"n2=2",
	END_ARGUMENTS,
	BEGIN_RESULT,
	END_RESULT,
	LAST);

web_service_cancel_security_saml_ex();