Please I need some help using the service proxies in my WAB dev 2.1 web apps in the "Direction Widget", I have tried using the generated services proxies but all I get is an error in the configuration settings, also tried doing it via "proxy.js" but this prompts users to login before they can make use of the direction widget.
Can anyone assist me in successfully implementing the "Direction Widget" without users needing to Login?
Solved! Go to Solution.
You just need to follow this blog post and in the proxy.config use these entries:
<serverUrl url="http://route.arcgis.com" username="username" password="password" rateLimit="600" rateLimitPeriod="60" matchAll="true" /> <serverUrl url="http://traffic.arcgis.com" username="username" password="password" rateLimit="600" rateLimitPeriod="60" matchAll="true" />
Yes I have read that blog and other recommended solutions, am probably missing something somewhere but I keep getting the same error as in the image:
My proxy.config and config.json
Thanks for the assistance
Sorry am just getting back to you on this, I had to attend to some other issues too. Thank you for you continuous help, I have pinged the proxy but seem to give me a "Runtime Error" now which wasn't the case before now. see image
Is there something I need to do to correct this?, as I have tried removing and re-converting it into an application in IIS
So went through the entire process again and now the "PING" returns ok, but still got issue with using the "Route and Traffic" service.
Maybe I am putting the username and password wrong given am using an Active Directory Account linked to my organisation? Please kindly assist dlaw-esristaff
Yes that is what I am using but given that we connected it via our organisation LDAP (AD) so the method of login in will be different as I can't use these user names on the "ArcGIS.com" site directly only through the "MyOrganisation.maps.ArcGIS.com"
Have you reviewed this blog post:
Public Access to ArcGIS Online Routing and Traffic Services
Hope this helps,