Patent ID: 8775649

Claim:
A method of client/server communication comprising the steps of: identifying characteristics of a client and a predetermined service to be obtained for said client from an application server, said client being a thin client operating in a first platform-independent environment, said application server operating in a second platform-independent environment; responsively to determining said characteristics of said client and said predetermined service, and external to said client: automatically compiling a client program for said client from a platform-independent source code, automatically defining a first message format for use by said client program that is optimized according to said characteristics and said predetermined service, and automatically generating a mediator program corresponding to the client program, said mediator program being adapted to process messages encoded in said first message format; sending said client program to said client; wherein said client program enables said client to generate a request for said predetermined service and encode said request according to said first message format to define an encoded message; receiving said encoded message from said client at a mediator server disposed external to said client; executing said mediator program in said mediator server to re-encode said encoded message into a second message format that is acceptable to said predetermined service of said application server to define a re-encoded message, wherein a size of said re-encoded message exceeds a size of said encoded message; and transmitting said re-encoded message to a provider of said predetermined service, wherein said client program is compiled from application of input data to a predefined template, wherein said template includes data and a logic specific to at least one of said client or said predetermined service and wherein said mediator program corresponding to said client program is generated responsively to said predefined template.