Problem in sending an XML File from Navision to MSMQ

subhaster
Member Posts: 64
Hi ,
I met with an error , the moment , I send and XML file from Navison to MSMQ.
For this I am using the following code :-
When i run this code, it is showing me an error :
You have used an invalid data type , and on running the debugger , the break point was found to be coming at
OutS.WRITE(XMLDom.documentElement);
can u please suggest me , what change should i make in my code ?
thanks in advance ,
I met with an error , the moment , I send and XML file from Navison to MSMQ.
For this I am using the following code :-
CLEAR(CC2); CLEAR(MqBUS); CREATE(CC2); CREATE(MqBUS); CC2.AddBusAdapter(MqBUS,1); MqBUS.OpenWriteQueue('.\Private$\fromNavision',0,0); MqBUS.SenderAuthenticationLevel:= 2; OutMsg := CC2.CreateoutMessage('Message queue://'); IF ISCLEAR(XMLDom) THEN CREATE(XMLDom); XMLDomMgmt.SetNormalCase; XMLProccesingInst := XMLDom.createProcessingInstruction('xml','version=''1.0'' encoding=''windows-1252'''); XmlNode := XMLDom.appendChild(XMLProccesingInst); CLEAR(XmlNode); XmlNode := XMLDom.createElement('Description'); XmlNode.text:='Red Ribbons'; XMLDom.appendChild(XmlNode); OutS.WRITE(XMLDom.documentElement); OutMsg.Send(0);
When i run this code, it is showing me an error :
You have used an invalid data type , and on running the debugger , the break point was found to be coming at
OutS.WRITE(XMLDom.documentElement);
can u please suggest me , what change should i make in my code ?
thanks in advance ,
Subhasish Chakraborty,
Systems Analyst,
MBS Dynamics.
Systems Analyst,
MBS Dynamics.
0
Comments
-
I assume that result of XMLDom.documentElement is not string... :-)0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K 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
- 320 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