I am trying to send some feature classes from geoprocessing services. I have written Python toolboxes which does some business logic and generates feature classes (both point and polygon for different tools).
I have published these tools as geoprocessing services and want to return these feature classes, but so far I am stuck at points where my tools do all successful processing but are unable to send back the feature classes.
I can generate the JSON output of the result through featureset.JSON and send it across as string but I really don't know how to consume that string to render my map at the JavaScript client side. I tried setting the output parameter type as "feature class", "feature set", "shape file", but the services gives a "invalid return type" error.
Can somebody please help me in this?