[solved]Name spaces in xmlPort

ta5ta5 Member Posts: 1,164
Hi

I have a question concerning name spaces. Navision 4.02

This is my xm example:
<?xml version="1.0" encoding="UTF-8" ?> 

<foo-0001:envelope version="1.0" xmlns:foo-0001="http://www.foo.com/xmlns/foo-0001/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.foo.com/xmlns/foo-0001/1 http://www.foo.com/xmlns/foo-0001/1/foo-0001-1-0.xsd">

<foo-0001:messageId>1196247040467</foo-0001:messageId> 

</foo-0001:envelope>

Questions:
1: I guess we have to remove the namespace when importing it to navision, as discussed in this forum. Is this correct?

2. Same for Navision 5.0?

3: How to import/export the qualifiers in the tags, for example <messageId> is not enough, it must read
<foo-0001:messageId>. Any ideas?

Thanks in advance

Thomas

Comments

  • ara3nara3n Member Posts: 9,256
    Hello.

    This link should be helpful.

    http://www.mibuso.com/forum/viewtopic.php?t=23618
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • jlandeenjlandeen Member Posts: 524
    Navision XML ports (up to and including version 5.0) do not support namespaces full stop. You must remove the namespaces before you can pass the XML to an XMLport for import.

    So if you have to validate an XML file against an XSD or do any other processing that is dependant on the Namespaces you will probably have to do that via XML DOM Automation objects or live without it for now. Does it suck...yes! Here's hoping this is fixed in 6.0 ;)
    Jeff Landeen - Sr. Consultant
    Epimatic Corp.

    http://www.epimatic.com
  • ta5ta5 Member Posts: 1,164
    Thanks for your postings on this. Very appreciated!
    Regards
    Thomas
Sign In or Register to comment.