How can I pass an XML document back thorugh web service?
jwilder
Member Posts: 263
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?
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?
Jason Wilder
jwilder@stonewallkitchen.com
jwilder@stonewallkitchen.com
0
Comments
-
what version of NAV?0
-
NAV 2009 using the External Connector. You posted on another question of mine that I can use xml dom. I am guessing I can use xmldom document as var parameter in Navision codeunit? This way I could pass in an xml document and pass it back.Jason Wilder
jwilder@stonewallkitchen.com0 -
You use xmldom to consume a webservice, not to offer a webservice. You can't use xmldom as a function parameter in you webservice. You need to use xmlport.
If your goal is to see how the xml looks like. well run the xmlport and export it to text.0 -
My goal is to pass actual xml to website. It is easier for our website to work with actual xml.Jason Wilder
jwilder@stonewallkitchen.com0 -
XMLport as a ByRef (changeable) parameter.
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.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 329 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
