We have a website that will call a NAV Codeunit to return a customer record. We want to return this Customer record in an xml format? How can I do this?
I don't think an xmlport is the answer because an xmlport only returns access to the fields in the xmlport, it doesn't return the actual xml that I can see. Or is there a way to expose the xmlport as xml instead?
0
Comments
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
jwilder@stonewallkitchen.com
If your goal is to see how the xml looks like. well run the xmlport and export it to text.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
jwilder@stonewallkitchen.com
This compiles as a custom class in C# (or something like that) but you could just write a C# method in your website that serializes those back to XML.
Or, use XMLDOM (MSXML6.0) to make an XML and put into a ByRef BigText, but the above is better IMHO.