I think I am getting closer. I modified my C# code to send a Polygon instead of a Geometry. I am now sending the following for the AreaOfInterest:
{"geometryType":"esriGeometryPolygon","spatialReference":{"wkid":54016},"features":[{"geometry":{"spatialReference":{"wkid":54016},"rings":[[[-9644076.38419297,5796738.17420953],[-9644076.38419297,7907391.71990488],[-5457946.85189718,7907391.71990488],[-5457946.85189718,5796738.17420953],[-9644076.38419297,5796738.17420953]],[[-9239534.45460135,5761560.6151146],[-9239534.45460135,7801859.04262011],[-7216824.80664331,7801859.04262011],[-7216824.80664331,5761560.6151146],[-9239534.45460135,5761560.6151146]]]},"attributes":{}}]}
If I execute the GP task via the REST interface, I get the following results:
Job Status: esriJobFailed
Job Messages:
esriJobMessageTypeInformative: Submitted.
esriJobMessageTypeInformative: Executing...
esriJobMessageTypeInformative: Executing (ExtractData): ExtractData "Feature Set" "File Geodatabase - GDB - .gdb" "File Geodatabase - GDB - .gdb"
esriJobMessageTypeInformative: Start Time: Fri Nov 19 09:35:38 2010
esriJobMessageTypeInformative: Running script ExtractData...
esriJobMessageTypeError: ERRORS: Traceback Info: File "\\S5-BSC-IMS2\MapDefinitions\BaseMapService\Scripts\ExtractData.py", line 330, in zipFolder = clipAndConvert(layers, areaOfInterest, featureFormat, rasterFormat, coordinateSystem) Error Info: : exceptions must be old-style classes or derived from BaseException, not str
esriJobMessageTypeInformative: Completed script ExtractData...
esriJobMessageTypeError: Failed to execute (ExtractData).
esriJobMessageTypeInformative: Failed at Fri Nov 19 09:35:51 2010 (Elapsed Time: 13.00 seconds)
esriJobMessageTypeError: Failed.
Line 330 in the Python script corresponds to:
zipFolder = clipAndConvert(layers, areaOfInterest, featureFormat, rasterFormat, coordinateSystem)
I am not sure what that error refers to. It does not tell me which parameter it is having problems with!