The serviceLib.setHTTPBasicAuthentication() system function provides simple HTTP header authentication that uses 64–bit encryption.
For details about the required CICS configuration, see "Deploying a web service requester to CICS."
serviceLib.setHTTPBasicAuthentication(variable Service | Interface in,
userID STRING in,
password STRING in)
or
serviceLib.setHTTPBasicAuthentication(
userID STRING in,
password STRING in)
The following example shows the setHTTPBasicAuthentication() function in context:
try
serviceLib.setHTTPBasicAuthentication(userID,password); // set the default for all services
serviceLib.setHTTPBasicAuthentication(accountServices, //works for accountServices only and overrides the default
userID, password);
onException(sbe ServiceBindingException)
sysLib.setError(sbe.message);
end
Platform | Issue |
---|---|
COBOL generation | The setHTTPBasicAuthentication() function is supported only for z/OS CICS. |