Skip to main content

As an additional source for a transformation I need an xml-File with a given name. This file can be located online (url-adress). If its not online the XML-Reader should use a local file (with the same name). How can I implement this in a Workspace?

 

Thanks for your help

You could use the FeatureReader instead of the XML reader.

That way you have an option to manipulate the file name before getting to that transformer.

You could use the FileExistenceChecker (a tranformer available on the FME Hub) to see if the XML file is available online.

Hope this helps.


You could use the FeatureReader instead of the XML reader.

That way you have an option to manipulate the file name before getting to that transformer.

You could use the FileExistenceChecker (a tranformer available on the FME Hub) to see if the XML file is available online.

Hope this helps.

I tried the FileExistenceChecker but it seems that it can not check url adresses. I didn't recognize an url-Adress that the xml-Reader is able to read. Any Idea what the problem could be? Test_FEC.fmw


I tried the FileExistenceChecker but it seems that it can not check url adresses. I didn't recognize an url-Adress that the xml-Reader is able to read. Any Idea what the problem could be? Test_FEC.fmw

Why not just use a http caller to check for the existence of the file?


Or use the HttpCaller to hit the XML adres. If Rejected then initiate a FeatureReader with the local file.

dynamicreadsample.fmwt


Or use the HttpCaller to hit the XML adres. If Rejected then initiate a FeatureReader with the local file.

dynamicreadsample.fmwt

Your Input helped a lot, thank you very much.


Reply