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.

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.

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 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
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.

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 }
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_wsntnsdoc_show
File name: rjwsn_cli_wsntnsdoc_show.html