Select to view content in your preferred language

Service Proxies for ArcGIS Online Routing and Traffic

2887
12
Jump to solution
10-25-2016 07:16 AM
deleted-user-CQZbjNeBXm49
Deactivated User

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

0 Kudos
1 Solution

Accepted Solutions
deleted-user-CQZbjNeBXm49
Deactivated User

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

View solution in original post

0 Kudos
12 Replies
RobertScheitlin__GISP
MVP Emeritus

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" />
deleted-user-CQZbjNeBXm49
Deactivated User

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

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Baba,

  Have you tested your proxy?

http://your server address/wab/proxy.ashx?ping

0 Kudos
deleted-user-CQZbjNeBXm49
Deactivated User

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

0 Kudos
deleted-user-CQZbjNeBXm49
Deactivated User

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

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Baba,

  The user name and password need to be one of the named users on your AGOL account.

0 Kudos
deleted-user-CQZbjNeBXm49
Deactivated User

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"

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Baba,

   That is a bit out of my area of experience then.

0 Kudos
DerekLaw
Esri Esteemed Contributor

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,

0 Kudos