showWSNService command
Use the showWSNService command to show the properties of a WS-Notification service. 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.
(iSeries) (iSeries) The wsadmin scripting client is run from Qshell. (iSeries) See Configure Qshell to run WebSphere scripts .
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 at the wsadmin prompt:
print AdminTask.help('WSNotificationCommands')
- For overview help on a given command, enter at the wsadmin prompt:
print AdminTask.help('command_name')
This command shows the properties of a WS-Notification service in a human-readable form. There are two patterns for use of this command:
- The required WS-Notification service is determined by the target object used.
- The required WS-Notification service is determined by the values specified on the parameters.
Target object
WSNService (conditional - must be provided if the bus and name parameters are not provided).
Required parameters
None.
Conditional parameters
- -bus
- The name of the service integration bus on which the WS-Notification service is located. This must be specified if a target object is not specified.
- -name
- The name of the WS-Notification service to be displayed. This must be specified if a target object is not specified.
Optional parameters
None.
Examples
Display the WS-Notification service obtained in the example from the topic about listing WS-Notification services , using the target object pattern.
- Use Jython:
AdminTask.showWSNService(wsnServiceList)- Use Jacl:
$AdminTask showWSNService $wsnServiceList
Display the WS-Notification service obtained in the example from the topic about listing WS-Notification services , using the parameters pattern.
- Use Jython:
AdminTask.showWSNService(["-bus", "bus1", "-name", "NewWSNService"])- Use Jacl:
$AdminTask showWSNService {-bus bus1 -name NewWSNService}