Communication between the JUNOScript server and a client application is session based. The two parties explicitly establish a connection before exchanging data and close the connection when they are finished. Each request from the client application and each response from the JUNOScript server constitutes a well-formed XML document, because the tag streams obey the structural rules defined in the JUNOScript and JUNOS XML DTDs for the kind of information they encode. Client applications must produce a well-formed XML document for each request by emitting tag elements in the required order and only in the legal contexts.
The following list outlines the basic structure of a JUNOScript session. For more specific information, see the JUNOScript API Guide.