Author |
Message
|
lam |
Posted: Sat Nov 11, 2006 5:42 am Post subject: websphere MQ(receive xml files) |
|
|
Acolyte
Joined: 09 Nov 2006 Posts: 50
|
I go you explain my probléme and I wish that you help me to solve it. thus I am new a menbre forum and I am beginner with websphére MQ.
I receive XML files in the queue of websphere MQ via a network, I must normally recover these files to treat its (select fields necessary to put them in a database) and that in language C.
therefore I ask for the following:
1-exist there the API in C or programs which make it possible to read these files from the queue (links please)
2-can I make the treatment (selection of the fields, to recover them in variables…)directly from the queue
3-what's the nature of the files in the queue (chains of character, ASCII, binary…)
thank you very much for your assistance, and I wish to send me a links who can help me to research |
|
Back to top |
|
 |
fjb_saper |
Posted: Sat Nov 11, 2006 8:02 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Why don't you start here _________________ MQ & Broker admin |
|
Back to top |
|
 |
lam |
Posted: Sat Nov 11, 2006 10:58 am Post subject: thanks but precise please ;) |
|
|
Acolyte
Joined: 09 Nov 2006 Posts: 50
|
hi,
Thank you very much for your answer but if you can answer me precisely on my questions I would be very grateful,
mercy |
|
Back to top |
|
 |
wschutz |
Posted: Sat Nov 11, 2006 12:06 pm Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
MQ itself does not care about what you put in the message's. So if a program puts XML into messages, your program will get the entire XML string.
The programming API's are documented in the application programming guide and reference in the InfoCenter link that fj gave ... there are no specific api's for handling XML in MQ, you'll have to get yourself an XML parser (or use WMQ Message Broker). _________________ -wayne |
|
Back to top |
|
 |
lam |
Posted: Mon Nov 13, 2006 1:31 am Post subject: |
|
|
Acolyte
Joined: 09 Nov 2006 Posts: 50
|
hi,
to be clear, I will re-explain my problem.
I receive in my queue MQ the files XML via network,which I want to treat them one by one with a C program by using the API libxml. therefore I must recover these files and then to record them in form <filenum.xml> in order to be able to treat them (by libxml), I ask to help me to indicate a method or a program or API (C language) which makes it possible to read and to store the files which are in the queue in order to treats them
I am available for any other explanation thank you very much to have to help me |
|
Back to top |
|
 |
Vitor |
Posted: Mon Nov 13, 2006 1:46 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
As has been said before here and in your other posts, MQ doesn't know or care that the messages contain XML. The standard APIs will recover the message from the queue; if you do a search you'll find a number of threads on writing message contents to a file.
I'll repeat that it seems wasteful to read a message & write the contents to a file simply to read the file immediately so it can be parsed & processed. Build the parser into the reading program & save yourself a step (and all the hastle with filenames). _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|