XML Ports a bit useless in the real world?

Hi

just starting a little discussion regarding XML ports...

Whenever i try to use an XML port to import data i nearly always run into some issue that means i can't use an XML port and end up reverting to a codeunit (luckily with XML buffer this is now fairly simple) XML ports are generally find for quick internal transfers but if you want to integrate with another system then i'm starting to think why even bother with an XML Port?

The issues include :-

  • anything other than very basic namespace declarations
  • Variation in which fields will appear (i.e. some fields will be in the file but not in XML port and vice versa) UseLax should be the solution but I'm yet to find a situation where it's of benefit
  • Order of fields varying in the file
  • Slightly clumsy to work with if there's a mix of direct field mapping and variables

I'm currently working on a pretty complex implementation and every time i've needed to import some XML data one of these issues has become a deal breaker and i've fallen back to using a codeunit.  Looking on the forums there are few if any decent solutions to any of these problems.

It seems like yet another case of so close yet so far from Microsoft, something that should be a really simple and powerful solution is rendered almost useless by a few simple shortcomings and oversights.  Does anyone else have any of these issues? or disagree with me completely? ;)

Looking forward to a constructive discussion :)

Regards

Garry

Parents
  • I strongly disagree.

    Navision was designed as a robust and very simple to use system. In fact the original Navision slogan was

    The Beauty Of Simplicity.

    But we seem to have forgotten that. Navision was designed as a business tool, not as a geeky development language. Your average business person with some basic programming skill can make an XML port work and work reliably if done so within the constraints of what it was designed for, which was basically a replacement for dataports.

    If you need to transfer data from one system to another, XML ports are a fast solid and reliable way to do so.

    keeping things simple means that they will cost less, implement faster, be easier to test and will be more reliable.
Reply Children
No Data
Related
Recommended