I have a web application client built using ArcGIS Server Manager which is currently showing a single map composed by three data layers. The map data are provided as a map service by my ArcGIS Server 10.1 instance.

My task is to provide the map's users a way to download the full map locally as a shapefile (e.g: zipped) via her/his web browser.

I was hinted to read [here](http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/index.html#/GP_Service_example_Data_on_demand/00930000003v000000/) and to build a geoprocessing service to accomplish the task. I decided to write a specific toolbox myself using Python, then publish it as a geoprocessing service on my ArcGIS Server instance and finally include it into my web application.

Can you point me towards any third-party (meaning: non-ESRI) code sample to start me up? 

I can find no examples other than the ones in ESRI's support website!