Confirming URL construction from GeoEvent

670
1
Jump to solution
08-10-2017 09:44 AM
AllWeatherHeather
Occasional Contributor

Hi,

I'm using the Poll an External Website for XML using the parameters listed below. Based on my troubleshooting I can only receive data when I include the API key directly in the URL field (instead of the Parameters field). What I am wondering is what the final URL looks like that GeoEvent is using to query the service? I need the two parameters I've indicated to be added to the end of what I have in the URL (and I have included the '/' already). Is there somewhere I can check this? I've been told by the vendor that my parameters are not coming through.

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
AllWeatherHeather
Occasional Contributor

With the help of the wonderful folks over at Esri Canada tech support we were able to solve this one. The answer was to place the entire string in the URL field and replace the ":" with "%3A". The original and the result look something like this (with the API key masked as abc123).

Original:

http://services.marinetraffic.com/api/exportvessels/v:8/abc123/timespan:150/protocol:xml

Working URL for GeoEvent:
http://services.marinetraffic.com/api/exportvessels/v%3A8/abc123/timespan%3A150/protocol%3Axml

View solution in original post

1 Reply
AllWeatherHeather
Occasional Contributor

With the help of the wonderful folks over at Esri Canada tech support we were able to solve this one. The answer was to place the entire string in the URL field and replace the ":" with "%3A". The original and the result look something like this (with the API key masked as abc123).

Original:

http://services.marinetraffic.com/api/exportvessels/v:8/abc123/timespan:150/protocol:xml

Working URL for GeoEvent:
http://services.marinetraffic.com/api/exportvessels/v%3A8/abc123/timespan%3A150/protocol%3Axml