modifyJAXWSHandlerList command

Use the modifyJAXWSHandlerList command to modify the configuration details for a Java™ API for XML-based Web Services (JAX-WS) handler list that has been configured for use with Version 7.0 WS-Notification services.

You can modify a JAX-WS handler list by using the wsadmin tool as described in this topic, or by using the administrative console.

You can only add previously-configured handlers to a handler list. To configure a handler, see the createJAXWSHandler command.

To run the command, use the AdminTask object of the wsadmin scripting client.

[IBM i][IBM i]The wsadmin scripting client is run from Qshell.

Command-line help is provided for service integration bus commands:
  • For a list of the available WS-Notification commands, plus a brief description of each command, enter the following command at the wsadmin prompt:

    print AdminTask.help('WSNotificationCommands')

  • For overview help on a given command, enter the following command at the wsadmin prompt:

    print AdminTask.help('command_name')

After using the command, save your changes to the master configuration by using the following command:

AdminConfig.save()

Purpose

A Java API for XML-based Web Services (JAX-WS) handler is a Java class that performs a range of handling tasks. For example: logging messages, or transforming their contents, or terminating an incoming request. To enable handlers to undertake more complex operations, you chain them together into handler lists. The approach taken in WebSphere® Application Server is to assign handler lists (rather than individual handlers) to WS-Notification service points (for inbound invocation handling) or WS-Notification services (for outbound invocation handling).

Target Object

A JAX-WS handler list object.

Required parameters

-name
The name of the JAX-WS handler list.
This name must be unique at cell scope, and it must obey the following syntax rules:
  • It must not start with . (a period).
  • It must not start or end with a space.
  • It must not contain any of the following characters: \ / , # $ @ : ; " * ? < > | = + & % '

When you change a handler list name, the system looks up all objects that refer to it and updates the name.

Conditional parameters

None.

Optional parameters

-description
A description of the JAX-WS handler list.
-handlers
The list of JAX-WS handler names to be added to this list.

Each handler name supplied must exist as a JAX-WS handler object at cell scope. Handlers are applied in the sequence in which they appear in the handler list.

Example

Modify the configuration for a particular JAX-WS handler list class:
  • Using Jython:
    JAXWSHandlerList = AdminTask.modifyJAXWSHandlerList(JAXWSHandlerList, 
    '[-name newHandlerList1 -description newDesc -handlers [[handler1] [handler2]]]')
  • Using Jacl:
    $AdminTask modifyJAXWSHandlerList JAXWSHandlerList 
    {-name handlerList1 -description newDesc -handlers {{handler1}{handler2}} }