showWSNTopicDocument command
Use the showWSNTopicDocument command to show the contents of a WS-Notification topic namespace document.
You can show the contents of a WS-Notification topic namespace document by using the wsadmin tool as described in this topic, or by using the administrative console as described in Showing the contents of a WS-Notification topic namespace document.
如果要執行這個指令,請使用 wsadmin Scripting 用戶端的 AdminTask 物件。
wsadmin Scripting 用戶端是從 Qshell 執行.
如需相關資訊,請參閱利用 wsadmin Script 配置 Qshell 來執行 WebSphere Script.
服務整合匯流排指令有指令行說明:
- 如需可用的 WS-Notification 指令清單,以及每個指令的簡要說明,請在 wsadmin 提示下,輸入下列指令:
print AdminTask.help('WSNotificationCommands')
- 如需給定指令的概觀說明,請在 wsadmin 提示下,輸入下列指令:
print AdminTask.help('command_name')
Purpose
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).
Required parameters
None.
Conditional parameters
- -url
- 用來載入 XML 文件的網址。 This parameter must be specified if the target type is WSNTopicNamespace, and must not be specified if a WSNTopicDocument target is supplied.
Optional parameters
None.
Examples
Show the contents of the topic
namespace document newTopicDoc created in the example from topic "Applying a WS-Notification
topic namespace document by using the wsadmin tool":
- Using Jython:
AdminTask.showWSNTopicDocument(newTopicDoc)
- Using 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 the wsadmin tool", by
using the WSNTopicNamespace target pattern:
- Using Jython:
AdminTask.showWSNTopicDocument(newTopicNamespace, ["-url", "http://www.example.org/instance_doc1.xml"])
- Using Jacl:
$AdminTask showWSNTopicDocument $newTopicNamespace { -url http://www.example.org/instance_doc1.xml }