Network Deployment (Distributed operating systems), v8.0 > Develop and deploying applications > Develop web services - Security (WS-Security) > Configure Web Services Security during application assembly


Configure HTTP basic authentication for JAX-RPC web services with an assembly tool

We can configure HTTP basic authentication for JAX-RPC web services with an assembly tool.

We can configure HTTP basic authentication with assembly tools provided with WAS.

This task is one of three ways that you can configure HTTP basic authentication. We can also configure HTTP basic authentication with the admin console or by modifying the HTTP properties programmatically.

If you choose to configure the HTTP basic authentication with an assembly tool or with the admin console , the Web Services Security binding information is modified. We can use an assembly tool to configure HTTP basic authentication before you deploy or install the web services application into WAS. This task assumes that we have not deployed the web services application into the WebSphere product.

If you configure HTTP basic authentication programmatically, the properties are configured in the Stub or Call instance. The values set programmatically take precedence over the values defined in the binding.

The HTTP basic authentication that is discussed in this topic is orthogonal to WS-Security and is distinct from basic authentication that WS-Security supports. WS-Security supports basic authentication token, not HTTP basic authentication.

To configure HTTP basic authentication, use the WAS tools to modify the binding information.


Procedure

  1. Start an assembly tool. Read about starting the assembly tool in the Rational Application Developer documentation.

  2. If we have not done so already, configure the assembly tool so that it works on Java EE modules. You need to make sure that the Java EE and Web categories are enabled. Read about configuring the assembly tool in the Rational Application Developer documentation.
  3. Migrate the WAR files that are created with the Assembly Toolkit, Application Assembly Tool (AAT) or a different tool to the Rational Application Developer assembly tool.

    To migrate files, import your WAR files to the assembly tool. Read about migrating code artifacts to an assembly tool in the Rational Application Developer documentation.

  4. Configure the HTTP basic authentication in the Web Services Client Port Binding page for a web service or a web service client. The Web Services Client Port Binding page is available after double-clicking the client deployment descriptor file. Read about Web Services Client Port Bindings in the Rational Application Developer documentation.


Secure web services
Overview of standards and programming models for web services message-level security
Assembly tools
Secure web services applications at the transport level
Authenticate web services clients using HTTP basic authentication


Related


HTTP SSL Configuration collection
HTTP basic authentication collection

+

Search Tips   |   Advanced Search