Select to view content in your preferred language

Where can I change GP Task URLs inside app folder generated by WAB?

1985
14
Jump to solution
04-21-2017 08:26 AM
FrancescoTonini2
Occasional Contributor II

I am trying to unzip and deploy a web app created with WAB 2.x. onto a different PC. However, I would like to update the Task URL of all my GP widgets to re-route them to a different GIS Server I am using now. Which file(s) should I look at inside my ../webappbuilder/server/apps/<app_number> folder to modify and update the new task URLs and leave everything else untouched on the app structure?

0 Kudos
14 Replies
FrancescoTonini2
Occasional Contributor II

The task URL is: 

https://<my_GIS_domain>/arcgis/rest/services/Geoprocessing/DrawSystemsfromTable/GPServer

Usually whether I choose "some task" as in "Draw%20Systems%20from%20Table" after /GPServer/... or not it always works when setting up my widget. So as far as the URL pointing and grabbing/validating the GP task, that URL above works if that is what you were making sure...

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

When you add just the .../GPServer to the widgets settings UI it looks for the specific task and enters that to the task url

i.e. task url is .../GPServer/Draw%20Systems%20from%20Table

and serverInfo url is just .../GPServer

0 Kudos
FrancescoTonini2
Occasional Contributor II

Right, so here is how I had "updated" parameters in the configs:

"helpUrl": "http://<my_GIS_domain>/arcgis/rest/directories/arcgisoutput/Geoprocessing/DrawSystemsfromTable_GPServer/Geoprocessing_DrawSystemsfromTable/DrawSystemsfromTable.htm"

"serverInfo":{

   ...

   "url": "http://<my_GIS_domain>/arcgis/rest/services/Geoprocessing/DrawSystemsfromTable/GPServer/"

   ...

"taskUrl": "http://<my_GIS_domain>/arcgis/rest/services/Geoprocessing/DrawSystemsfromTable/GPServer/Draw Systems from Table"

Shouldn't this be correct already?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Yes it look correct. So I assume that it is still not working. Can you try adding the new server url in your WAB builder when configuring the widget then and just copy the configs/Geoprocessing/config_Geoprocessing.json once you have it setup correctly?

0 Kudos
FrancescoTonini2
Occasional Contributor II

Will try and let you know how that goes...thanks a lot!

0 Kudos