Esri / solutions-widgets-wpf

Solutions Widgets for use in the ArcGIS WPF Operations Dashboard.
Apache License 2.0
15 stars 15 forks source link

Find Closest Resource Service error #21

Open csmoore opened 10 years ago

csmoore commented 10 years ago

Service gives error: http://route.arcgis.com/arcgis/rest/services/World/ClosestFacility/NAServer/ClosestFacility_World/solveClosestFacility

https://github.com/Esri/solutions-widgets-wpf/blob/master/source/FindClosestResource/FindClosestResource/FindClosestResourceToolbar.xaml.cs#L137

csmoore commented 10 years ago

@ubatsukh @jeffbaranyi Just checking back to see if you know who we should ask about this service.

jeffbaranyi commented 10 years ago

Is the service still giving an error? That should be the official ArcGIS Online version (see http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#//02r3000000n7000000).

csmoore commented 10 years ago

Should one be able to just hit this URL (gives error)?

http://route.arcgis.com/arcgis/rest/services/World/ClosestFacility/NAServer/ClosestFacility_World/solveClosestFacility

Or is there some other way to verify this dependent service is working?

conklinbd commented 10 years ago

@csmoore the service directory is disabled but it should be possible to use this service as long as a valid token is provided. Refer to the Rest API doc for generating valid tokens.

csmoore commented 10 years ago

@conklinbd @ubatsukh

Really the only motivation was to have the unit tests check that the required services were up (we were asked to do this): https://github.com/Esri/solutions-widgets-wpf/blob/master/source/AllSolutionsWidgetsWithTests/TestDependentServices/TestDependentServices.cs

Not sure if there is an easier way to verify this (like maybe 403 is OK and means it is up).

Or if there are additional steps needed that can be added to the test driver or readme then go ahead and add -or- alternately perhaps this is just something we don't try to do with these service-disabled ones.

jrweakland commented 9 years ago

@csmoore - Is this issue still valid?

csmoore commented 9 years ago

As far as I know this widget still does not run as is, without some additional steps/code to specify the token mentioned above, but this issue can be closed if I am the only person who is having this issue.

jrweakland commented 9 years ago

@kgonzago - Can you take a look at this when you get a chance?