Usually customised drivers are written to extract data from the server side as incase of oracle db and web based clients.Mainframe are usually quite complex and are multi tier based application. The easiest way to understand the principle is - understanding "Client Server" principle as stated above.
Usually the information is exchanged in XML format .
Usually the information is exchanged in XML format .