|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Validate incoming XML using DTD.. |
« View previous topic :: View next topic » |
Author |
Message
|
nanibala |
Posted: Tue Feb 01, 2005 7:58 am Post subject: Validate incoming XML using DTD.. |
|
|
Newbie
Joined: 10 Dec 2004 Posts: 6
|
Hi All,
1) I would like to validate my incoming XML using DTD.
Could any one had already implemented, please share the steps to be done and the node to be used to implement that.
2) In the implementation of excecption Handling, i would like to add the functionality of sending mails to the support person.
I am using the exception handling in my flow and want to know how we can send mails to the users, if any message on exception Q or failure Q's..
Thanks in advance,
Regards,
Bala. |
|
Back to top |
|
 |
kirani |
Posted: Tue Feb 01, 2005 11:49 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Import your DTD into a message set and then use MRM validation to validate your input message against the modeled message definition.
Take a look at SendMail supportPac, which can be used to send emails from message flow. _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
nanibala |
Posted: Wed Feb 02, 2005 9:40 am Post subject: Validate incoming XML using DTD.. |
|
|
Newbie
Joined: 10 Dec 2004 Posts: 6
|
Hi,
Thanks for your reply.
A) For validationg XML using DTD.
I tried to do the XML validation using the following steps.
1) I have the DTD as follows.
<?xml version="1.0"?>
<!DOCTYPE note [
<!ELEMENT note (to,from,heading,body)>
<!ELEMENT to (#PCDATA)>
<!ELEMENT from (#PCDATA)>
<!ELEMENT heading (#PCDATA)>
<!ELEMENT body (#PCDATA)>
]>
2) I have the samle XML message as follow.
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me!</body>
</note>
3) Improted the DTD into message set.In message set i selected the Runtime Parser as MRM.
4) Created a message flow and it has MQinput node, Check node and MQoutput node.
In MQInput node, the property as follows.Message Domain as BLOB.I have a requirement as the input message is XML or BLOB.If the incoming message is XML, then i want to validate the XML message.So for XML messge the next node is CHECK to validate the XML message.In check node i have the following property.
Domain: MRM
SET-Message set created for that DTD.
The CHECK node out terminal connected to OUT.Q and failiure terminal connected to FAILURE.Q
With this setting if put a XML mesage, its not validating anythig.Always it goes to the OUT.Q.
I am not sure abt the followings.
a) What i am missing here?
b) Is there anyway to do validation in MQINPUT node itself?
c) is there any other node to be used?
Any help on this will be appreciated.
B) For sneding mail support pack, i have donlodaed that and my concern is ,IS anyone tried with SUNSOLARIS broker to have this plug in node?.Because the PDF says its tested with AIX, LINUX and Windows.
Thanks in advance,
Bala. |
|
Back to top |
|
 |
kirani |
Posted: Fri Feb 04, 2005 12:20 am Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Regarding the message validation, you can use either MQInput node or Compute node's validation feature. _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
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
|
|
|
|