In this recipe, we will consume a web service protected by HTTP Basic authentication.
Create a reference to the web service that is protected by HTTP Basic authentication. Ensure that you have created a credential key that can be used to identify the requestor.
Right-click on the reference that requires HTTP Basic authentication, and select Configure WS Policies....
Set the csf-key property to be the name of the credential key, previously created, by entering the name into the Override Value field. Click on OK to set the value of the key.
After attaching the policy to the outbound endpoint (reference), we needed to identify the particular set of credentials that we need to use. We did this by pointing to a set of credentials we previously created in the credential store.
The entry in the credential store can be re-used across multiple references in the same or different composites.