Export Data to Message Queue

Gery
Member Posts: 2
Hello Everyone!
I want to export data to the message queue from a xml port and use following code to do it:
CREATE(CC2);
CREATE(MQBus);
CC2.AddBusAdapter(MQBus,1);
MQBus.OpenWriteQueue('wi-fst5-vz-grp1\private$\customerData',0,0);
OutMsg := CC2.CreateoutMessage('Message [url=queue://wi-fst5-vz-grp1]queue://wi-fst5-vz-grp1[/url]\private$\customerData');
OutS:= OutMsg.GetStream;
XMLPORT.EXPORT(5050, OutS);
OutMsg.Send(0);
CLEAR(OutMsg);
CLEAR(CC2);
CLEAR(MQBus);
This already work, however when I'm looking at the Messages in the Queue the are all in hex saved?
Like this one:
FF FE 3C 00 3F 00 78 00 ÿþ<.?.x.
6D 00 6C 00 20 00 76 00 m.l. .v.
65 00 72 00 73 00 69 00 e.r.s.i.
6F 00 6E 00 3D 00 22 00 o.n.=.".
31 00 2E 00 30 00 22 00 1...0.".
20 00 65 00 6E 00 63 00 .e.n.c.
6F 00 64 00 69 00 6E 00 o.d.i.n.
67 00 3D 00 22 00 55 00 g.=.".U.
54 00 46 00 2D 00 31 00 T.F.-.1.
36 00 22 00 20 00 73 00 6.". .s.
74 00 61 00 6E 00 64 00 t.a.n.d.
61 00 6C 00 6F 00 6E 00 a.l.o.n.
...
Is there any possibilty to save it already in "real" xml format at the Message Queue?
Thanks already for any help
I want to export data to the message queue from a xml port and use following code to do it:
CREATE(CC2);
CREATE(MQBus);
CC2.AddBusAdapter(MQBus,1);
MQBus.OpenWriteQueue('wi-fst5-vz-grp1\private$\customerData',0,0);
OutMsg := CC2.CreateoutMessage('Message [url=queue://wi-fst5-vz-grp1]queue://wi-fst5-vz-grp1[/url]\private$\customerData');
OutS:= OutMsg.GetStream;
XMLPORT.EXPORT(5050, OutS);
OutMsg.Send(0);
CLEAR(OutMsg);
CLEAR(CC2);
CLEAR(MQBus);
This already work, however when I'm looking at the Messages in the Queue the are all in hex saved?
Like this one:
FF FE 3C 00 3F 00 78 00 ÿþ<.?.x.
6D 00 6C 00 20 00 76 00 m.l. .v.
65 00 72 00 73 00 69 00 e.r.s.i.
6F 00 6E 00 3D 00 22 00 o.n.=.".
31 00 2E 00 30 00 22 00 1...0.".
20 00 65 00 6E 00 63 00 .e.n.c.
6F 00 64 00 69 00 6E 00 o.d.i.n.
67 00 3D 00 22 00 55 00 g.=.".U.
54 00 46 00 2D 00 31 00 T.F.-.1.
36 00 22 00 20 00 73 00 6.". .s.
74 00 61 00 6E 00 64 00 t.a.n.d.
61 00 6C 00 6F 00 6E 00 a.l.o.n.
...
Is there any possibilty to save it already in "real" xml format at the Message Queue?
Thanks already for any help

0
Comments
-
It is not HEX but UTF-8... UTF-8 is double byte... ;-) (the first two bytes are flag that context is UTF)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