ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ API Support » websphere MQ(receive xml files)

Post new topic  Reply to topic
 websphere MQ(receive xml files) « View previous topic :: View next topic » 
Author Message
lam
PostPosted: Sat Nov 11, 2006 5:42 am    Post subject: websphere MQ(receive xml files) Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Sat Nov 11, 2006 8:02 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Why don't you start here
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
lam
PostPosted: Sat Nov 11, 2006 10:58 am    Post subject: thanks but precise please ;) Reply with quote

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
View user's profile Send private message
wschutz
PostPosted: Sat Nov 11, 2006 12:06 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail AIM Address
lam
PostPosted: Mon Nov 13, 2006 1:31 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Mon Nov 13, 2006 1:46 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » websphere MQ(receive xml files)
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.