<?xml version="1.0" encoding="UTF-16" standalone="no"?> <Data> <Ledger> <ItemNo>PO-000001</ItemNo> <Qty>CR-0001</Qty> </Ledger> <Ledger> <ItemNo>PO-000001</ItemNo> <Qty>CR-0003</Qty> </Ledger> <Ledger> <ItemNo>PO-000001</ItemNo> <Qty>CR-0002</Qty> </Ledger> <Ledger> <ItemNo>PO-000001</ItemNo> <Qty>CR-0003</Qty> </Ledger> </Data>
Comments
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
and do some coding inside codeunit
so I thought it's better just use 1 object
and XML port we cant import data using fixed path
(correct me if i'm wrong... user must browse first)
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
i already fill the default name file
but still need to browse before import
Another way is to use BigText parameter, into which the XML is passed as value and you can than stream the text into XMLPort or DotNet assembly.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
so what you mean is like this
lets say i have 1 function named ImportData
give this function 1 parameter
and then from webservice i should call this function including the parameter
example --> ImportData(Test.xml)
is it like this?
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
now the problem is...
previously i use nav 2009 to develop this codeunit
after i export this object, and then i move it to my 2013 database
(the same computer)
there is an error message :
You cannot create an Automation object "xmldomDoc" on Microsoft Dynamics NAV Server. You must create it on a client computer.
i have variable name xmldomDoc
Data type : Automation
Sub type : 'Microsoft XML, v6.0'.DOMDocument
anything wrong? or something i must set up first
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
example perhaps
There is assembly System.Xml.XmlDocument
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
anyway any sample for this thing?
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
this is what i need it !
Thanks! :thumbsup: