|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
WTX Type Tree - Query |
« View previous topic :: View next topic » |
Author |
Message
|
me@tcs |
Posted: Thu Feb 11, 2010 2:29 pm Post subject: WTX Type Tree - Query |
|
|
Novice
Joined: 22 Mar 2008 Posts: 18
|
Hi,
I am trying to create a type tree from an XML Schema using XML Schema importer for type trees.
I have a restrictions on a couple of fields in the XSD, like, a particular field can accept only "INS,"UPD" or "DEL" as the valid values. My xsd does not specify this restriction using xsd:enumeration or xsd:pattern.
Can I generate the type tree out the xsd and then manually edit the type tree to add restrictions?
My requirement is that my map has to fail on invalid values.
I am new to WTX and any help is greatly appreciated.
Thanks! |
|
Back to top |
|
 |
Gaya3 |
Posted: Thu Feb 11, 2010 10:18 pm Post subject: |
|
|
 Jedi
Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US
|
Yes you can add restrictions in Type Tree... its quite easy to do also.
learn about Restrictions - Range in Type Tree.. _________________ Regards
Gayathri
-----------------------------------------------
Do Something Before you Die |
|
Back to top |
|
 |
me@tcs |
Posted: Fri Feb 12, 2010 10:12 am Post subject: |
|
|
Novice
Joined: 22 Mar 2008 Posts: 18
|
Thanks for the immediate reply..
I have already tried adding restrictions to the item in the type tree generated out of XML schema. But when I use this modified type tree in the map as an input card, it does not fail the map on invalid input for the field for which I have specified restrictions. Instead, the command server gives me the message "Input type contains error". It generates the output for all the fields except for the field with restrictions and invalid input.
Am i missing some setting like Map Validation settings or something?
Help greatly appreciated! |
|
Back to top |
|
 |
Gaya3 |
Posted: Tue Feb 16, 2010 8:17 am Post subject: |
|
|
 Jedi
Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US
|
is it possible for you to debug or trace the same. _________________ Regards
Gayathri
-----------------------------------------------
Do Something Before you Die |
|
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
|
|
|
|