Most of the command interfaces that I have seen usually use the "Execute" method, which takes an input command and returns either void or some general structure indicating whether the command completed successfully or not (we use the latter). Now I never thought about this before, but we suddenly had the need to find out more detailed information about the result of the team than what you can provide in general terms.
Consider the following example:
You have a team and you create a screen where you can add members to your team. Team members are shown in the grid below "add new member". Now, when you click "add new member", you want to run some jquery / roundohuse / whatever and add the new member to the list of team members. There are no problems at the moment, but: you also want to include some credentials in a hidden field for each member, and these credentials come from the server.
So the problem is, how can I get these credentials from the server? The "AddNewTeamMember" command, which I click on the "ExecuteCommand" method, does not give me anything useful, and if I add a new request method to the service, saying something like: "GetLastAddedTeamMember", then I can just get the last record added by someone to others (at least if it is data that is very aggressively added by different users). In some situations, you have a unique unique identifier created on the client side that we can use, but we did not do this for team members.
source share