Posted: Mon Sep 23, 2002 8:04 am Post subject: Best way to convert XMl to flat message (Client--> server
Acolyte
Joined: 09 Jul 2001 Posts: 73
Senario: Client is JMS/MQSeries, that receives an XML message. Needs to transfer this into flat message (this is what host needs. Host does not accepts XML messages). We can NOT write server-side code (Channel Exits etc.) NO modification on what is running. Everything has to be done on client-side.
So , you got the real picture. No what is the best way (if there is one) to convert XML to flat (don't forget flat to XML as reply).
Try an application which gets invoked via trigger when a messages arrives on the intermediate Queue, and this application takes care of the conversion and put to the destination queue, vice versa convert the flat into xml. _________________ Thanks in Advance.
Kavitha
IBM Certified System Administrator
Websphere MQ v 5.3
www.zealphoenix.com
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
There is probably at least 10 ways to solve this problem and most of them involve using an intermediate queue.
Here are a few ideas off the top of my head:
(1) If you have lots of money then I would suggest purchasing a transformation engine like MQSI or Mercator (personal preference – I like Mercator). Both do a very good of converting XML to flat file (and back).
(2) You could roll your own solution. Apache’s XALAN and XPATH would make a very robust solution but you need developers to design / programmer your solution.
(3) You could use 2 open source solutions to do the job. For XML to flat file you could use fx2sx and for flat file to XML you could use txt2xml.
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