Patent ID: 8266632

Claim:
A method for service composition in a distributed computing environment comprising at least one client and a server, and involving at least one service, comprising the steps of sending a request to said server from said client invoking said service; said client receives from said server, in response to said receives, a composition message in a specific format, wherein said specific format can be recognized and said format indicates that composition messages carry calls to said service, and wherein composition messages also carry results from said calls; said client recognizing said specific format when said composition message is received; said client automatically invoking said at least one service from said client on said server by sending a new request message including arguments included in said composition message; receiving call results from said at least one service in said client; sending said call results to any said server from said client; and maintaining in said client a call stack for handling composition massages by including the steps of: said client storing one of said composition messages in a top-most frame before performing service calls as instructed by said one of said composition messages, said client pushing a frame onto said call stack when initiating one of said service calls; when said one of said service calls terminates, said client removing the top-most frame by ending a result to said client, and before sending to any said server the said one of said composition messages, said client removing said one of said composition messages from the top-most frame.