Network Deployment (Distributed operating systems), v8.0 > Reference > Commands (wsadmin scripting)
showWSNTopicDocument 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 showWSNTopicDocument command to show the contents of a WS-Notification topic namespace document.
We can show the contents of a WS-Notification topic namespace document by using wsadmin as described in this topic, or by using the admin console as described in Showing the contents of a WS-Notification topic namespace document.
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 shows the XML contents of a WS-Notification topic namespace document. There are two patterns for use of this command:
- The required topic namespace document is determined by the target topic namespace document.
- The required topic namespace document is determined by a combination of the target WS-Notification topic namespace, and the url provided as a parameter.
Target object
There are two choices for the target type of this command:
- WSNTopicDocument (explicitly nominates the topic namespace document to be shown).
- WSNTopicNamespace (determines the required WS-Notification topic namespace; must be used in combination with the url parameter).
None
Required parameters
Conditional parameters
-url
The web address that was used to load the XML document. This parameter must be specified if the target type is WSNTopicNamespace, and must not be specified if a WSNTopicDocument target is supplied.
None
Optional parameters
Example
Show the contents of the topic namespace document newTopicDoc created in the example from topic "Applying a WS-Notification topic namespace document by using wsadmin":
### Jython
AdminTask.showWSNTopicDocument(newTopicDoc)### Jacl
$AdminTask showWSNTopicDocument $newTopicDoc
Show the contents of the topic namespace document newTopicDoc created in the example from topic "Applying a WS-Notification topic namespace document by using wsadmin", by using the WSNTopicNamespace target pattern:
### Jython
AdminTask.showWSNTopicDocument(newTopicNamespace, ["-url", "http://www.example.org/instance_doc1.xml"])### Jacl
$AdminTask showWSNTopicDocument $newTopicNamespace { -url http://www.example.org/instance_doc1.xml }
WS-Notification
Use WS-Notification for publish and subscribe messaging for web services
Secure WS-Notification
Showing the contents of a WS-Notification topic namespace document
Related
WS-Notification troubleshooting tips
Topic namespace document [Settings]