Invoking web services that require HTTP basic authentication
HTTP basic authentication employs a user name and password to authenticate a service client to a secure endpoint. You can set up HTTP basic authentication when sending or receiving web service requests.
About this task
HTTP basic authentication can be
enabled for web service requests that are sent by a JAX-WS import
binding in one of two ways:
- When configuring the import binding in an SCA module, you can select the supplied HTTP authentication policy set named BPMHTTPBasicAuthentication (which is provided with the web service (JAX-WS) import binding) or any other policy set that includes the HTTPTransport policy.
- When constructing the SCA module, you can use mediation flow capabilities to dynamically create a new HTTP authentication header and specify the user name and password information in the header.
Note: The policy set has precedence over the value specified
in the header. If you want to use the value set in the HTTP authentication
header at run time, do not attach a policy set that includes the HTTPTransport
policy. Specifically, do not use the default BPMHTTPBasicAuthentication
policy set, and, if you have defined a policy set, make sure it excludes
the HTTPTransport policy.
For more information about web service policy sets and policy bindings and how they are used, see Web services policy sets of the WebSphere Application Server Information Center.