What arcpy module can I use to write a python script to mine for fields of my map service properties and export them to a .tx file? I assume we need to tap into GIS Servers within the ArcCatalog interface?
Quick and dirty code... substitute the "print" for some code to write to a textfile if thats what you want. You'll notice its hardcoded to one specific layer in a map service. You can enhance to loop through all layers, or even loop through all services on a server THEN all layers, THEN get fields.
Also for reference, heres what you can get out of "f":
(per a 10.1 server, may change for 10.0)