Hi Derek
Thanks for you very informative reply. I have been trying to use it, however I am getting stuck at few issues.
First of all I created the wrapper service just like you said for this ESRI's premium service and set its sharing option to public:
http://hydro.arcgis.com/arcgis/rest/services/Tools/Hydrology/GPServer/Watershed
The wrapper url comes out to be:
https://utility.arcgis.com/usrsvcs/servers/d3ddd7c7271646a180d68af1dcb6bbea/rest/services/Tools/Hydr...
Now in Web app builder (AGSOL), I added a new geoprocessing widget:
And in the url I entered the wrapper url.
Then I selected the option of "interactively drawing on the map" for InputPoints. I left the rest of options as default.
Now When I run this widget I get the dialog and I click on the map and run the execute button.
I may get the result once, but later all I get is this error result, which I have not been able to figure out why it is happening.
I will really appreciate your help in this regard.
I have tried two other methods too, but they also resulted in same error message.
One method was to add url in "Attribute" tab of Web app builder, which actually creates the AGOL hosted proxy service. I tried to use that proxy url in the add widget button, but got the same error window as above.
Second method that I tried was quite similar, but this time instead of adding private content url in "Attribute" tab of Web appbuilder, I directly created the service proxy in ArcGIS for developers page. From the configure new service proxy I selected "hydrology" option and used this proxy url in web app, but unfortunately it also resulted in same error.
Thanks,
Muhammad Almas