Workflow on a ARCGIS service with security
We have a Workflow that will search our address points rest service (dynamic arcgis service) and return an entered value. It was model after the find owner name workflow sample.
Running the workflow on the address points service from an unsecured arcgis rest service, it works fine (our development box). Once we add security to our arcgis rest services (production server), the workflow returns an error that just says “Workflow failed”.
IF we point the workflow on the “production server” to the unsecured address point arcgis rest service on the "development server" the workflow works.
It seem like having the security on the arcgis rest services is not allowing the workflow to return information?
Any ideas?
-
It might be the following Bug, which have been solved with the release of Geocortex Essentials 3.5, as I see it.
GE-1497: Unable to query a secured ArcGIS service in a workflow.
- Sune
0 -
There might be a more detailed error in the log file. It should be located somewhere like this:
C:\Program Files (x86)\Latitude Geographics\Geocortex Essentials\Default\REST Elements\REST\App_Data\Logs
Check the system log file.
Cheers,
Christian.
0 -
I should have mentioned that we are currently running Geocortex Essentials 3.5 and Silverlight viewer 1.3, sorry. I looked into the log file and have copied it into this post. It appears that it is a permissions error. Is there a way to pass permission in workflow?
Many Thanks,
<Event Timestamp="2011-10-11T08:46:05.765431-04:00" Level="ERROR" Identity="Guest"><Message>Workflow 'Find_address' failed. Cause: Geocortex.Workflow.WorkflowException: Aborted exception: 'Unauthorized access'. ---> ESRI.ArcGIS.Client.Tasks.ServiceException: Unauthorized access
at Geocortex.Workflow.Activities.QueryTask.Execute(NativeActivityContext context)
at System.Activities.NativeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.ActivityInstance.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
--- End of inner exception stack trace ---</Message></Event>
<Event Timestamp="2011-10-11T08:46:05.8034332-04:00" Level="ERROR" Identity="Guest"><Message>Error occured during REST request: Workflow 'Find_address' failed</Message></Event>0 -
The error you are seeing is a result of connecting to a secured ArcGIS Server endpoint. The fix mentioned for GE-1497 was to support Token and ProxyURL arguments on the QueryTask and other ArcGIS Server activities (these will allow you to connect to secured services). In your workflow you will need to provide a long-lived token or specify a proxy page that will handle authentication.
We are working on a GenerateToken activity that will allow you to create tokens on the fly. This will probably be available later this year.
--Ryan
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
4 Kommentare