I would like to reproduce the "Save site as template" action with the client object model. Can someone give me a hint how to do this?
The short answer is "Save site as template" is not possible with the client object model (it IS possible with the server object model).
If you look at the
Microsoft.SharePoint.Client.Web class you'll see it doesn't have a
SaveAsTemplate method like the server-side
SPWeb class does.
Although I'm not familiar with these techniques, this may be a workaround: