listWSNServices command

Use the listWSNServices command to list WS-Notification services. A WS-Notification service provides access to service integration bus resources for web services publish and subscribe clients.

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

[IBM i] The wsadmin scripting client is run from Qshell. For more information, see Configuring Qshell to run WebSphere scripts using wsadmin scripting.

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')

Purpose

This command lists all the WS-Notification services in the configuration that match the specified input parameters. This command can be used to obtain a reference to one or more WS-Notification services that have already been created in the configuration in order to work with the service further, for example to add a new WS-Notification topic namespace definition.

Target object

WS-Notification services that match the requested pattern.

Required parameters

None.

Conditional parameters

None.

Optional parameters

-bus
The name of the service integration bus by which the list of WS-Notification services is filtered.
-name
The name of the WS-Notification service by which the list of WS-Notification services is filtered.
-type
The type of WS-Notification service by which the list of WS-Notification services is filtered. Permitted values are V7.0 and V6.1. By default, services of all types are listed.

Examples

List all WS-Notification services of any type on bus1:

wsnServiceList = AdminTask.listWSNServices(["-bus", "bus1"] )

List all Version 7.0 WS-Notification services on bus1:

wsnServiceList = AdminTask.listWSNServices(["-bus", "bus1", "-type", "V7.0"] )
Reference topic    

Terms and conditions for information centers | Feedback

Last updated: April 17, 2014 10:32 PM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=phil&product=was-express-iseries&topic=rjwsn_cli_wsnserv_list
File name: rjwsn_cli_wsnserv_list.html