Configuring the server security bindings using an assembly tool

Use an assembly tool to edit bindings for a web service after these bindings are deployed on a server.

Before you begin

Important: There is an important distinction between Version 5.x and Version 6 and later applications. The information supports Version 5.x applications only that are used with WebSphere® Application Server Version 6.0.x and later. The information does not apply to Version 6.0.x and later applications.

Prior to importing the web services enterprise archive (EAR) file into the assembly tool, make sure that you have already run the WSDL2Java command on your web service to enable your Java™ Platform, Enterprise Edition (Java EE) application. You must import the Web services EAR file into the assembly tool.

About this task

Create an Enterprise JavaBeans (EJB) file Java archive (JAR) file or a web application archive (WAR) file containing the security binding file (ibm-webservices-bnd.xmi) and the security extension file (ibm-webservices-ext.xmi).  If this archive is acting as a client to a downstream service, you also need the client-side binding file (ibm-webservicesclient-bnd.xmi) and the client-side extension file (ibm-webservicesclient-ext.xmi).  These files are generated using the WSDL2Java command. For more information, read about the WSDL2Java command for JAX-RPC applications. You can edit these files using the web services editor in the assembly tool.

When configuring server-side security for Web Services Security, the security extensions configuration specifies what security is performed, the security bindings configuration indicates how to perform what is specified in the security extensions configuration. You can use the defaults for some elements at the cell and server levels in the bindings configuration, including key locators, trust anchors, the collection certificate store, trusted ID evaluators, and login mappings and reference these elements from the WAR and JAR binding configurations.

Open the web services editor in an assembly tool to begin editing the server security extensions and bindings. The following steps can locate the server security extensions and bindings. Other tasks specify how to configure each section of the extensions and bindings in more detail.

Procedure

  1. Launch an assembly tool.
    For more information, see the related information on Assembly Tools.
  2. Switch to the Java EE perspective. Click Window > Open Perspective > J2EE.
  3. Configure the server for inbound requests and outbound responses security configuration.
    To configure the server for inbound requests and outbound responses, complete the following steps:
    1. Click EJB Projects > application_name > ejbModule > META-INF.
    2. Right-click the webservices.xml file and click Open with > Web services editor.
      The webservices.xml file represents the server-side (inbound) web services configuration. The webservicesclient.xml file represents the client-side (outbound) web services configuration.
  4. In the web services editor (for the webservices.xml file and inbound requests and outbound responses web services configuration), there are several tabs including Web Services, Port Components, Handlers, Security Extensions, Bindings, and Binding Configurations. The security extensions are edited using the Security Extensions tab. The security bindings are edited using the Security Bindings tab.
    1. Click the WS Extensions tab and select the port component binding to edit. The Web Services Security extensions are configured for inbound requests and outbound responses. You need to configure the following information for Web Services Security extensions. These topics are discussed in more detail in other topics in the documentation.
    2. Click the Binding Configurations tab and select the port component binding to edit. The Web Services Security bindings are configured for inbound requests and outbound responses. You need to configure the following information for Web Services Security bindings. These topics are discussed in more details in other topics in the documentation. 

What to do next

Configure the client for outbound requests and inbound responses security configuration by right-clicking the webservicesclient.xml file and clicking Open With > Deployment descriptor editor. For more information, see Configuring the client security bindings using an assembly tool.