Question

Unable to fetch wfs data


Badge +9

I am trying to connect to the following WFS link to obtain the data but can not get anything

The link is

http://environment.data.gov.uk/ds/wfs?SERVICE=WFS&INTERFACE;=ENVIRONMENTWFS--86ec354f-d465-11e4-b09e-f0def148f590&VERSION;=2.0.0

Any ideas what is wrong??


2 replies

Userlevel 4

I get the following error message from the URL you specified:

501 Unauthorised Access
Access Denied
Sorry, you are not authorised to access this resource.

Did you enter a valid username/password when creating the reader?

Badge +5

The reason the link doesn't work directly is - I think - because there's no operation in there. For example, add &request;=GetCapabilities to the end of the URL you posted and it returns the information just fine.

Also I think you probably don't need to have the SERVICE and VERSION keywords there. FME will add them for you automatically. In FME I used the WFS reader and entered the URL as:

http://environment.data.gov.uk/ds/wfs?INTERFACE=ENVIRONMENTWFS--86ec354f-d465-11e4-b09e-f0def148f590

...and was able to select the floods table from the Feature Types parameter.

Having said that, trying to read the data results in the same 501 Unauthorized Access error, so I think you'll still have to check that with your IT folk. Use the Data Inspector, turn the log Window on, do what I just did above, and show them the error that results.

Reply