Hi All,
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?
Baba
Solved! Go to Solution.
Thank you Derek and Robert ,
I was able to figure it all out now, rather than using "https://route.arcgis.com" in the <serverUrl>, the full service need to be in there as seen in the image below
Thank you
Baba
Baba,
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" />
Hi Robert,
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
Baba
Hi Robert,
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
Thanks
Baba
Robert,
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
Thank you
Baba
Baba,
The user name and password need to be one of the named users on your AGOL account.
Robert,
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"
Baba,
That is a bit out of my area of experience then.
Hi Baba,
Have you reviewed this blog post:
Public Access to ArcGIS Online Routing and Traffic Services
https://blogs.esri.com/esri/arcgis/2014/10/07/public-access-to-arcgis-online-premium-services/
Hope this helps,