Patent ID: 8621016

Claim:
A method comprising: classifying Simple Object Access Protocol (SOAP) messages originating within a first gateway, into message classes according to at least one of: a structure, content, and a context thereof; selecting one of a plurality of templates for each classified SOAP message, each selected template yielding a minimized product of a diff function applied to the selected template and the classified SOAP message for which it is selected, wherein the selected template of the first gateway and a second gateway comply; applying a diff function to each selected template and the classified SOAP message for which it is selected to yield respective deltas; encapsulating, in at least one outgoing SOAP message, a template identifier or a classified SOAP message with each respective delta, the template identifier being uniquely associated with the selected template; and transmitting the at least one encapsulated outgoing SOAP message to a communication link in communication with the second gateway; wherein at least one of the classifying, the selecting, the applying, the encapsulating, and the transmitting is executed by at least one processor.