Skip to main content
Solved

OGC WFS and version dependent parameter typeName(s) ?


lifalin2016
Contributor
Forum|alt.badge.img+29

Hi all.

I'm trying to consume a WFS service (Geoserver), which for some reason only works as version 1.0.0. This even though that the capabilities document clearly says 2.0, and accepts all versions.

In versions 1.0.0 (and 1.1.0?) the parameter "typeName" is used to specify the layer (feature type), but this is later renamed to "typeNames" (with an S).

I get an HTTP error 401 from the service when attempting to fetch data in version 1.0.0, but the very same URL works if I just add an "s" to "typeName".

Can FME be tricked into instead using or adding the "typeNames" parameter?

Actually, URLs may contain both "typeName" and "typeNames" parameters with the same value, which would make the requests robust against version problems. Can this be achieved?

Cheers.

Best answer by lifalin2016

It seems that the issue has been solved in version 2022, so I'm closing this.

View original
Did this help you find an answer to your question?

3 replies

kailinatsafe
Safer
Forum|alt.badge.img+21

Hello @Lars I Nielsen​ , I know there was a parameter added to the WFS Reader recently regarding TYPENAMES. Not sure what version of FME you're using, so its hard to say if you'll have access to it, but it should be in a 'Workaround' section in the WFS reader parameters. Could you try enabling the 'Seperate WFS v2.0 TYPENAMES with commas' parameter? I cannot gaurantee this will work, but it may be worth trying. Alternatively, would you be able to share your WFS URL? Best, Kailin.


lifalin2016
Contributor
Forum|alt.badge.img+29
  • Author
  • Contributor
  • August 11, 2022
kailinatsafe wrote:

Hello @Lars I Nielsen​ , I know there was a parameter added to the WFS Reader recently regarding TYPENAMES. Not sure what version of FME you're using, so its hard to say if you'll have access to it, but it should be in a 'Workaround' section in the WFS reader parameters. Could you try enabling the 'Seperate WFS v2.0 TYPENAMES with commas' parameter? I cannot gaurantee this will work, but it may be worth trying. Alternatively, would you be able to share your WFS URL? Best, Kailin.

Thanks Kailin.

Alas, as I described, the version has to be fixed to 1.0.0, so this option is not accessable.

But version 2022.0 did read the data without problems. I normally use 2020.2.5, which showed the error.

I have already been tasked with upgrading our FME servers to 2022.x, but in this job our desktop is used, and here we can switch version much easier.

Cheers.


lifalin2016
Contributor
Forum|alt.badge.img+29
  • Author
  • Contributor
  • Best Answer
  • September 9, 2022

It seems that the issue has been solved in version 2022, so I'm closing this.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings