Use the createJAXWSHandler command to create a new Java API for XML-based Web Services (JAX-WS) handler configuration so that the handler can be used, as part of a handler list, with Version 7.0 WS-Notification services.
You can create a new JAX-WS handler configuration by using the wsadmin tool as described in this topic, or by using the administrative console as described in Creating a new JAX-WS handler configuration.
This task assumes that you have already created your handler. You can do this by using IBM® Rational® Application Developer or a similar tool. You must also make the handler class available to the server or cluster that hosts the WS-Notification service points (for inbound invocation handling) or WS-Notification services (for outbound invocation handling) that you want to monitor, as detailed in Loading JAX-WS handler classes.
To run the command, use the AdminTask object of the wsadmin scripting client.
print AdminTask.help('WSNotificationCommands')
print AdminTask.help('command_name')
AdminConfig.save()
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. This command creates a new JAX-WS handler configuration so that the handler can be used, as part of a handler list, with Version 7.0 WS-Notification services.
The configuration object associates a unique name (the name parameter) with a Java class (the className parameter) that refers to the JAX-WS handler implementation.
A cell scope object.
None.
targetCell = AdminConfig.list('Cell') JAXWSHandler = AdminTask.createJAXWSHandler(targetCell, ["-name", "handler1", "-className", "handlerClass", "-description", "desc"])
$AdminTask createJAXWSHandler targetCell {-name handler1 -className handlerClass -description desc}