GeoprocessingTask is used to run geoprocessing task that is published as a web service. GeoprocessingTask is the main component when running geoprocessing tasks. The task might be published through ArcGIS Server or Local server (on the platforms that supports it) using either synchronous execute or asynchronous submit execution type. When GeoprocessingParameters is created it is important to match GeoprocessingExecutionType to the value on the service.
Creates default parameters for a geoprocessing task. This will populate the parameters with default values for all of the input parameters defined by the service. If the service defines a default value for a parameter, this will be used. If no default value is defined for a parameter, it will be given an appropriate default for its type: boolean parameters false, string parameters an empty string, numerical parameters 0. The correct execution type for this task will also be set.