[Contents] [Prev] [Next] [Index] [Report an Error]

Parsing the JUNOScript Server Response

The JUNOScript server encloses its response to each client request in a separate pair of opening <rpc-reply> and closing </rpc-reply> tags:

<rpc-reply xmlns:junos="URL">
    <!- - tag elements representing a response - ->
</rpc-reply>

The xmlns:junos attribute in the opening <rpc-reply> tag defines the default namespace for the enclosed tag elements that have the junos: prefix in their names, as discussed further in xmlns:junos Attribute. The <rpc-reply> tag element occurs only within the <junoscript> tag element. Client applications must include code for parsing the stream of response tag elements coming from the JUNOScript server, either processing them as they arrive or storing them until the response is complete. See the following sections for further information:

For an example of parsing the <rpc-reply> tag element in the context of a complete JUNOScript session, see Example of a JUNOScript Session.


[Contents] [Prev] [Next] [Index] [Report an Error]