Server - 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.
NOTE: If the application fails to emit the
tag, the Junos XML protocol server emits an error message similar to the
<junoscript>
following and immediately closes the session and connection:
<rpc-reply>
<xnm:error xmlns="http://xml.juniper.net/xnm/1.1/xnm" \
xmlns:xnm="http://xml.juniper.net/xnm/1.1/xnm">
<message>
communication error while exchanging credentials
</message>
</xnm:error>
</rpc-reply>
<!-- session end at YYYY-MM-DD hh:mm:ss TZ -->
</junoscript>
For more information about the
page 51.
Parsing the Initialization PI and Tag from the Junos XML Protocol Server
When the Junos XML protocol session begins, the Junos XML protocol server emits an
PI and an opening
<?xml?>
Parsing the Junos XML Protocol Server's <?xml?> PI on page 41
Parsing the Junos XML Protocol Server's Opening <junoscript> Tag on page 41
Parsing the Junos XML Protocol Server's <?xml?> PI
The syntax for the
<?xml?>
<?xml version="version" encoding="encoding"?>
The attributes are as follows. For a list of the attribute values that are acceptable in the
current version of the Junos XML management protocol, see "Supported Software
Versions" on page 43.
—The version of XML with which tag elements emitted by the Junos XML protocol
version
server comply
encoding
—The standardized character set that the Junos XML protocol server uses
and can understand
In the following example of a Junos XML protocol server's
attribute indicates that the server is emitting tag elements that comply with the XML 1.0
specification. The
encoding="us-ascii"
ASCII character set standardized by ANSI. For more information about ANSI standards,
see
.
http://www.ansi.org/
<?xml version="1.0" encoding="us-ascii"?>
Parsing the Junos XML Protocol Server's Opening <junoscript> Tag
After emitting the
<?xml?>
has the following form (the tag appears on multiple lines only for legibility):
<junoscript xmlns="namespace-URL" xmlns:junos="namespace-URL" \
Chapter 3: Controlling the Junos XML Management Protocol Session
<?xml?>
PI before emitting the opening
tag, see "Handling an Error or Warning" on
<xnm:error>
tag, as described in the following sections:
<junoscript>
PI is as follows:
attribute indicates that the server is using the 7-bit
PI, the server then emits its opening
PI, the
<?xml?>
version="1.0"
tag, which
<junoscript>
41

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junos os

Table of Contents