Editing policy set bindings

You can create and edit existing policy set binding configurations using the binding stand-alone editors.

About this task

Applications (both web service providers and clients) may contain binding configurations that are stored within the application EAR (in the META-INF folder) for managed applications, and within the project src folder for the thin client project. The policy set binding stand-alone editors abstract this to the level of the service and the client, and use the Services view to allow you to edit or create binding configurations invoking the editors without knowing the location of these files.

You can use the stand-alone editor to:
  • Creat a new set of binding configuration and add it to the application
  • Edit existing binding configurations that are already within the application

To attach the binding configurations being created or edited to the application endpoints you must use the policy set attachment wizard.

Create a binding configuration based on a template

Procedure

  1. Open the Services view.
  2. Select the web service provider or client under the JAX-WS tree.
  3. Right-click and select Configure Bindings > Add Binding configuration. This opens the Create Binding Configuration dialog.
    1. Binding name: Enter the name of the binding set being created.
    2. Template: Select from a pre-existing template based on the WebSphere Application Server general bindings, or an empty binding skeleton.
    3. Policy types: Select from the list of all binding policy types supported by the server.

Results

Once you have finished with the editor a folder with the specified binding name will be created, and the binding files from the template will be copied in to that folder. An editor for each policy type will be launched with which you can configure each policy type binding.

Edit an existing binding configuration for an application

Procedure

  1. Open the Services view.
  2. Select the web service provider or client under the JAX-WS tree.
  3. Right-click and select Configure Bindings > Edit Binding configuration. This opens the Configure Bindings dialog.
  4. You can clear the checkbox beside any policy type to remove it from the binding, or leave all policy sets as they are. When you click OK an editor for each policy type will be launched with which you can configure each policy type binding.

Adding a binding configuration to an existing binding based on a template

Procedure

  1. Open the Services view.
  2. Select the web service provider or client under the JAX-WS tree.
  3. Right-click and select Configure Bindings > Add Binding configuration. This opens the Create Binding Configuration dialog.
    1. Binding name: Enter the name of the binding set you previously created and want to extend.
    2. Template: Select from a pre-existing template based on the WebSphere Application Server general bindings, or an empty binding skeleton.
    3. Policy types: Select from the list of all binding policy types supported by the server. Policy sets already configured for this binding are not selected by default, but can be selected if you want the editor for that type to launch.
      Note: This will generate a warning because the previous binding configuration for that policy set type will be lost.

Results

Once you have finished with the editor the new binding files from the template will be copied in to the bindings folder. An editor for each policy type will be launched with which you can configure each policy type binding.


Feedback