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 » WebSphere Message Broker (ACE) Support » Importing DTD's in WMQI control center

Post new topic  Reply to topic
 Importing DTD's in WMQI control center « View previous topic :: View next topic » 
Author Message
kwelch
PostPosted: Mon Jul 07, 2003 9:56 am    Post subject: Importing DTD's in WMQI control center Reply with quote

Master

Joined: 16 May 2001
Posts: 255

Hi,

I have been using WMQI for quite awhile but have never used the DTD importer until today. I have an application that wants to validate their incoming and outgoing XML. I was able to import it but was surprised that every element came in as a separate type and message. Is this the norm? Can you point me to documentation and examples? I would also be interested in hearing opinions. One of the manuals said that sometimes you need to define the xml yourself rather than import, if they are not simple. Since I don't really understand DTD's I was hoping the import would handle it for me. Any tips or suggestions would be helpful. Thanks!

Karen
Back to top
View user's profile Send private message Send e-mail
zpat
PostPosted: Mon Jul 07, 2003 1:21 pm    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

In WMQI 2.1, the DTD import helps to construct a message set. It does not perform any validation of message content against the DTD.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Jul 07, 2003 2:15 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

zpat wrote:
In WMQI 2.1, the DTD import helps to construct a message set. It does not perform any validation of message content against the DTD.

While I certainly agree that's true, once you've used the importer, can't you validate your data against the imported model by instructing the input node to validate?
Back to top
View user's profile Send private message
zpat
PostPosted: Mon Jul 07, 2003 11:19 pm    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

I think the validation is strictly limited. AFAIK WMQI v5 extends this but it's still not as much as the DTD can specify.
Back to top
View user's profile Send private message
Yanghui
PostPosted: Tue Jul 08, 2003 1:04 am    Post subject: Reply with quote

Disciple

Joined: 08 May 2002
Posts: 151
Location: Dublin, Ireland

Hi, Karen,

I think you only need to specify (or prompt) one element (normally the root element) to the Messages window during you import DTD. It never happens to me that every element came in as a seperate type and message.

Hope it helps.

-Yanghui
Back to top
View user's profile Send private message Send e-mail
kwelch
PostPosted: Tue Jul 08, 2003 4:22 am    Post subject: Reply with quote

Master

Joined: 16 May 2001
Posts: 255

Thanks for the replies.

Yanghui thanks for that tip, I bet I did select everything when doing the import.

Zpat/Jeff - Can you point me to the documentation that says what you can validate? I thought I remembered reading that you could validate XML against a DTD.

Karen
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Tue Jul 08, 2003 6:14 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

kwelch wrote:
Zpat/Jeff - Can you point me to the documentation that says what you can validate? I thought I remembered reading that you could validate XML against a DTD.


The only documentation that I know of off the top of my head is the Working with Messages manual. Chapter 4 on the MRM Logical Model has a section on what validation can be performed. Chapter 6 has a section on Importing DTDs that discusses how the import process works.
Back to top
View user's profile Send private message
skn
PostPosted: Tue Jul 08, 2003 6:27 am    Post subject: Reply with quote

Centurion

Joined: 21 May 2003
Posts: 112
Location: Dallas

there are a couple of redbooks that might contain more about importing DTDs.

http://publib-b.boulder.ibm.com/Redbooks.nsf/9445fa5b416f6e32852569ae006bb65f/4ae16a7fa44716c68525689c006a23c1?OpenDocument&Highlight=0,integrator


http://publib-b.boulder.ibm.com/Redbooks.nsf/9445fa5b416f6e32852569ae006bb65f/5816e1e9332bddc485256ad50067038d?OpenDocument&Highlight=0,integrator
Back to top
View user's profile Send private message
zpat
PostPosted: Tue Jul 08, 2003 6:27 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

I am not a WMQI developer but I seem to remember that the "validate" option in the input node only checks the RFH2 headers against the message set name specified and does nothing else.

In other words it would reject a message that specified a different message type than you were expecting but that's about it.
Back to top
View user's profile Send private message
skn
PostPosted: Tue Jul 08, 2003 6:32 am    Post subject: Reply with quote

Centurion

Joined: 21 May 2003
Posts: 112
Location: Dallas

i am pretty sure it does some kind of validation against messages when an XML is defined in MRM.One of the two redbooks has some info on it,i am not sure which.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Jul 08, 2003 6:42 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

zpat wrote:
I am not a WMQI developer but I seem to remember that the "validate" option in the input node only checks the RFH2 headers against the message set name specified and does nothing else.

In other words it would reject a message that specified a different message type than you were expecting but that's about it.


This is not true as of CSD04. CSD03 added some partial validation, and CSD04 significantly enhanced the capabilities.
Back to top
View user's profile Send private message
Yanghui
PostPosted: Wed Jul 09, 2003 4:04 am    Post subject: Reply with quote

Disciple

Joined: 08 May 2002
Posts: 151
Location: Dublin, Ireland

Hi, Karen,

My understanding about Validation Tag with MQInput and Compute nodes are not for against DTD but MRM. It mainly uses those Value Constraints of an element to do evaluation. You can find info in detail in the following SupportPac "Validation Example"

http://www-3.ibm.com/software/integration/support/supportpacs/individual/id08.html

Hope it helps.

-Yanghui
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Importing DTD's in WMQI control center
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.