Broker 10.5 | webMethods Broker Documentation | webMethods Broker Client C API Programmer's Guide | API Reference | awSet | awSetDescriptorAuthInfo
 
awSetDescriptorAuthInfo
BrokerError awSetDescriptorAuthInfo(
BrokerConnectionDescriptor desc,
const char *auth_username,
const char *auth_password);
desc
The Broker connection descriptor on which you want to set the basic authentication user name and password.
auth_username
The basic authentication user name to be set on the Broker connection descriptor.
auth_password
The basic authentication password to be set on the Broker connection descriptor.
Sets the basic authentication information on the descriptor, that is user name and password.
Note:
If you set a NULL value for the auth_username and auth_password parameters, basic authentication information is reset for this connection descriptor.
Possible BrokerError major codes
Meaning
AW_ERROR_INVALID_DESCRIPTOR
The desc parameter is invalid.
AW_ERROR_NULL_PARAM
One of the parameters, auth_username or auth_password, is NULL.
AW_ERROR_NO_MEMORY
Cannot allocate memory.
See also: