Author |
Message
|
bhupa_sri |
Posted: Fri Sep 01, 2006 7:09 am Post subject: creating MessageSet using JAVA Prog |
|
|
Apprentice
Joined: 30 Dec 2004 Posts: 30 Location: India
|
Hi all,
I would like to create a Message Set in WBI MB 6.0 on windows 2000 OS using java program where an xml file is input for the program. can anybody help me in this, any links or suggestions.
Thanks in advance. |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Sep 01, 2006 7:12 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
A message set is an XSD, with custom extensions.
If you need to make varients of the same message set, your best bet is to build two by hand, and then figure out what needs to be changed to make the rest.
You can import an XML file, and then create an XSD from it and then create a new message set from that XSD. But that's manual, unless you can figure out how to automate those tasks using Ant in the Toolkit. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
bhupa_sri |
Posted: Fri Sep 01, 2006 9:46 am Post subject: |
|
|
Apprentice
Joined: 30 Dec 2004 Posts: 30 Location: India
|
Thanks for your quick reply...
This is we think of
1) Generate a xsd with xml using Java prog..
2) Create a messageset, run the mqsicommands in the Java prog
Is it correct approach..and is it possible to generate xsd with xml in java.
Thanks for your suggestions..... |
|
Back to top |
|
 |
kimbert |
Posted: Sat Sep 02, 2006 4:00 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Quote: |
I would like to create a Message Set...where an xml file is input for the program |
It's hard to advise you without knowing a bit more about your requirements. What is the message set for? What information is the XML file supplying? What is the intended physical format ( XML/CWF/TDS/non-MRM)? |
|
Back to top |
|
 |
bhupa_sri |
Posted: Wed Sep 06, 2006 6:32 am Post subject: |
|
|
Apprentice
Joined: 30 Dec 2004 Posts: 30 Location: India
|
Thanks for the replies
we got a solution for the above as follows:
Generate DTD using the java program with xml as input.
Message sets are created using "mqsicreatemsgdefs" command in the above java prog.
once again thanks for all... |
|
Back to top |
|
 |
|