If my geoprocessing service is asynchronous, do I have to create an asynchronous gp task using submitjob or can I use the execute task function? Thanks
Synchronous services are run via the Execute Task method and asynchronous services are run via the Submit Job method.In the REST Services Directory for your ArcGIS Server, navigate to the GP service's endpoint. Down at the bottom you'll see a list of supported operations with either Execute Task or Submit Job. This will tell you which to use.