Xmlns:junos Attribute; Junos Xml Protocol Server Response Classes - Juniper JUNOS OS 10.3 - XML MANAGEMENT PROTOCOL GUIDE 6-30-2010 Manual

Junos xml management protocol guide
Hide thumbs Also See for JUNOS OS 10.3 - XML MANAGEMENT PROTOCOL GUIDE 6-30-2010:
Table of Contents

Advertisement

Copyright © 2010, Juniper Networks, Inc.
the stream of response tag elements coming from the Junos XML protocol server, either
processing them as they arrive or storing them until the response is complete. See the
following sections for further information:
xmlns:junos Attribute on page 49
Junos XML Protocol Server Response Classes on page 49
Using a Standard API to Parse Response Tag Elements on page 50
For an example of parsing the
XML protocol session, see "Example of a Junos XML Protocol Session" on page 56.

xmlns:junos Attribute

The Junos XML protocol server includes the
tag to define the XML namespace for the enclosed Junos XML tag elements
<rpc-reply>
that have the
prefix on their names. The namespace is a URL of the form
junos:
http://xml.juniper.net/junos/release-code/junos
that represents the release of the Junos OS running on the Junos XML protocol server
machine.
In the following example, the namespace corresponds to the initial version of Junos OS
Release 10.3:
<rpc-reply xmlns:junos="http://xml.juniper.net/junos/10.3R1/junos">

Junos XML Protocol Server Response Classes

The Junos XML protocol server returns three classes of responses:
Operational Responses on page 49
Configuration Information Responses on page 50
Configuration Change Responses on page 50
Operational Responses
Operational responses are responses to requests for information about the status of a
switching, routing, or security platform. They correspond to the output from CLI operational
commands as described in the Junos command references.
The Junos XML API defines response tag elements for all defined operational request
tag elements. For example, the Junos XML protocol server returns the information
requested by the
<get-interface-information>
<interface-information>
, and returns the information requested by the
tag element in a response tag element called
<get-chassis-inventory>
The following sample response includes information about the interface
namespace indicated by the
version of Junos OS Release 10.3.
<rpc-reply xmlns:junos="http://xml.juniper.net/junos/10.3R1/junos">
<interface-information xmlns="http://xml.juniper.net/junos/10.3R1/junos-interface">
<physical-interface>
<name>ge-2/3/0</name>
<!-- other data tag elements for the ge-2/3/0 interface -??->
</physical-interface>
Chapter 3: Controlling the Junos XML Management Protocol Session
tag element in the context of a complete Junos
<rpc-reply>
xmlns:junos
, where
release-code
tag element in a response tag element called
attribute contains interface information for the initial
xmlns
attribute in the opening
is the standard string
<chassis-inventory>
. The
ge-2/3/0
.
49

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junos os

Table of Contents