Vote UpVote

Invoking Multiple Server Methods With a Single Call

Mat DeLong – It is possible in a DataSnap REST call to format your request in such a way that the single call will invoke multiple server methods before returning a result. To do this from a JavaScript REST client, for example, you’d include the ServerFunctionExecutor.js file and appropriate json file to your web page, and then make a JSON Array containing the server method information to send: var Msg = [{"execute":{"TServerMethods1.EchoString":["Hello, World!"]}}, {"execute":{"TServerMethods1.ReverseString":["Hello, World!"]}}]; The above JSON array contains a JSON Object for each method to ...
Favorite? Off-Topic? Mat DeLong @ 2011-03-02 15:11


Visits: 52
Votes: 0
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)