Trouble Polling External Website for XML in GeoEvent with credentials

467
1
12-09-2019 12:40 PM
VictoriaBeckley1
New Contributor II

Hello,

I'm trying to bring an XML wfs into geoevent server using "poll external website for xml", I'm generally following the steps of this blog, but I think I'm hung up on adding credentials into the URL. 

I've created an input with the URL: http://geo.daveyresourcekeeper.com:8080/geoserver/wfs_redwoodcity/wfs?service=wfs&version=1.1.1&requ...

which works when accessed in a browser and the username/pw are entered. And according to this blog I've tried to add the username/pw to the url as well as to the parameters space, but in all instances I'm getting "Request failed (HTTP/1.1 401 Unauthorized)." Along with 'Unable to parse input '' into spatial reference." Which I assume is because the data is inaccessible without credentials.

I'm wondering if you could advise on how to add the credentials to this URL or the parameters. I've tried
http://geo.daveyresourcekeeper.com:8080/geoserver/wfs_redwoodcity/wfs?service=wfs&version=1.1.1&username=abc&password=123&request=getFeature&typename=wfs_redwoodcity

 

And I've tried adding to the parameters "username=abc&password=123" but neither seemed to work.

Thank you,

Victoria

0 Kudos
1 Reply
Stefan_Jung
Esri Contributor

Hi Victoria Beckley‌,

i also had a look at the Post you mentioned:https://community.esri.com/thread/139667 

Did you try to create a new Connector with Adapter: Xml and the Transport: HTTP-BasicAuthentication

In my opinion this should be the best way to go. The HTTP-BasicAuthentication (Transport) provides the 2 properties Username and Password.

Best, 

Stefan

0 Kudos