|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
receive xml file |
« View previous topic :: View next topic » |
Author |
Message
|
lam |
Posted: Fri Nov 10, 2006 6:38 am Post subject: receive xml file |
|
|
Acolyte
Joined: 09 Nov 2006 Posts: 50
|
hi,
I receive XML files in queue of my customer websphere MQ starting from an other system, I want now to recover these files and to store them in a repertory dedicated in order to treat them. Can you indicate a tools which makes it possible to do that or a c or java program can do that
thank you |
|
Back to top |
|
 |
Vitor |
Posted: Fri Nov 10, 2006 6:44 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
In strict terms, any MQ program can receive messages containing XML because it's just text content. So if there's no requirement for the reading program to parse them because your repertory is treating them just pull them off the queue and store them!
If you need to parse the XML as it comes in, then you need a program as above equipted with a parser (like Xerces). Alternatively something like Message Broker can read MQ Messages, parse them and store the output accordingly.
Note - I mention Xerces & MB as examples only. No recommendation of either product is intended or should be implied. Selection of software and/or methodology should be made according to your requirements and limitations (if any). _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Nov 10, 2006 7:26 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
It is a waste of effort to take XML data out of a message and then store it into a file, in order to read the data from the flie and then process it.
It is a trivial exercise in programming to write code to do it, however.
It is not a trivial exercise in programming to write Enterprise level code to move data between Files and MQ messages, though.
That is, it's easy to write code to read messages and write files or read files and write messages.
It's hard to write good code to do it, though. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|