3. XML Interface

Information traveling through the channel between the application and XML bridge is formatted as XML elements. It is usually expected that a traditional XML document will contain only one root element. In XML stream it is the other way around. Root elements represent a type of commands or homogenous data packages. XML bridge defines three basic root elements: bindauth and msg.

Connection with XML bridge is always in one of three statuses:

– Not connected – XML stream has not been connected to a remote system. In this status the application can only send Element Bind. Other commands will be rejected in this status, reporting the UNBOUND_STREAM error;

– Not authenticated – after successful connection with the remote system it is necessary to perform authentication. Only element auth can be transmitted in both directions in this status, others are rejected, reporting the UNAUTHORIZED error;

Active – after successful authentication it is possible to transmit messages in both directions (element msg). Messages can consists of information elements.