Network Deployment (Distributed operating systems), v8.0 > Reference > Commands (wsadmin scripting)
listWSNTopicDocuments command
A topic namespace can optionally have topic namespace documents applied to it that define the structure of the topics that are permitted within the namespace. Use the listWSNTopicDocuments command to list the topic namespace documents in the configuration of the target WS-Notification topic namespace that match the specified input parameters.
To run the command, use the AdminTask object of the wsadmin scripting client.
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, run at the wsadmin prompt:
print AdminTask.help('WSNotificationCommands')
- For overview help on a given command, run at the wsadmin prompt:
print AdminTask.help('command_name')
This command lists all the topic namespace documents in the configuration of the target WS-Notification topic namespace that match the specified input parameters. This command can be used to obtain a reference to one or more topic namespace documents that have already been created in the configuration in order to work with the topic namespace document further, for example to delete the definition.
Target object
WSNTopicNamespace documents that match the requested pattern.
None
Required parameters
Conditional parameters
None
Optional parameters
-url
The web address that was used to load the XML document.
Example
Obtain a reference to the first topic namespace document defined against the newTopicNamespace object.
### Jython
wsnDocList = AdminTask.listWSNTopicDocuments(newTopicNamespace) wsnTopicDoc = wsnDocList.split("\n")[0].rstrip()### Jacl
set wsnDocList [$AdminTask listWSNTopicDocuments $newTopicNamespace] set wsnTopicDoc [ lindex $wsnDocList 0 ]
Obtain a reference to the first topic namespace document defined against the newTopicNamespace object with a given URL.
### Jython
wsnDocList = AdminTask.listWSNTopicDocuments(newTopicNamespace, ["-url", "http://www.example.org/instance_doc1.xml"]) wsnTopicDoc = wsnDocList.split("\n")[0].rstrip()### Jacl
set wsnDocList [$AdminTask listWSNTopicDocuments $newTopicNamespace {-url http://www.example.org/instance_doc1.xml}] set wsnDoc [ lindex $wsnDocList 0 ]
WS-Notification
Use WS-Notification for publish and subscribe messaging for web services
Secure WS-Notification
Related
WS-Notification troubleshooting tips
Topic namespace document [Collection]