Author |
Message
|
gb |
Posted: Fri Dec 16, 2011 4:15 am Post subject: Putting XML in string format to queue |
|
|
Newbie
Joined: 16 Dec 2011 Posts: 1
|
Hi all,
I need to put a XML message in string format to a queue.I have tried setting Outputroot.MQMD.Format to 'MQSTR' and keeping the xml in Outputroot.xmlnsc ,but its not working.
Please help. |
|
Back to top |
|
 |
smdavies99 |
Posted: Fri Dec 16, 2011 4:47 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
What is not working? How do you know? What output on the queue are you seeing? What have you done to investigate the matter yourself?
Please explain what you are seeing. with little or not details we can't really help you, unless you would like some guesses... _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
kimbert |
Posted: Fri Dec 16, 2011 4:48 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
You cannot put a string containing XML into OutputRoot.XMLNSC.
Please explain, in detail, what you are trying to do, and why. |
|
Back to top |
|
 |
adubya |
Posted: Fri Dec 16, 2011 11:24 am Post subject: |
|
|
Partisan
Joined: 25 Aug 2011 Posts: 377 Location: GU12, UK
|
Check out the infocentre details on the CREATE statement, specifically the PARSE clause. |
|
Back to top |
|
 |
kimbert |
Posted: Fri Dec 16, 2011 11:28 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
adubya: I don't think you mean CREATE. It is possible that ASBITSTREAM is the best choice - but you don't know that, and neither does anybody else yet. Let's see what gb says about the requirements. |
|
Back to top |
|
 |
adubya |
Posted: Fri Dec 16, 2011 11:42 am Post subject: |
|
|
Partisan
Joined: 25 Aug 2011 Posts: 377 Location: GU12, UK
|
Yes sorry, I assumed that the OP wanted to take a string and "explode" that into an XML structure which would populate the OutputRoot. I had vague recollections of doing something similar using CREATE with PARSE but now I think about it, the data we were exploding into XML was in a bitstream format not a string. |
|
Back to top |
|
 |
|