Author |
Message
|
broker_new |
Posted: Thu Feb 11, 2010 8:49 am Post subject: WMBv6.1-> XMLNSC Validation using XMLNSC/MsgSet |
|
|
 Yatiri
Joined: 30 Nov 2006 Posts: 614 Location: Washington DC
|
Hi Guys,
Just wanted to clear one doubt in validating the message using XMLNSC/Message Set.
When i select those parameters, the message type is being disabled, how does the broker know if there are multiple definition files in the Message Set project. Do we need to specify on ESQL messagetype is so and so...
Is broker intelligent enough to detect the message type and validate against that particular definition file? _________________ IBM ->Let's build a smarter planet |
|
Back to top |
|
 |
yaakovd |
Posted: Thu Feb 11, 2010 9:21 am Post subject: |
|
|
Partisan
Joined: 20 Jan 2003 Posts: 319 Location: Israel
|
Hi
broker intelligent enough to detect the message type if you tell him what is the type, message set and parser
It does not matter how many definition files you have in message set project - you allways mantion particular type. MB generate single dictionary with all types when compile bar-file.
Other question if you need validation against MRM or xsd? _________________ Best regards.
Yaakov
SWG, IBM Commerce, Israel |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Feb 11, 2010 10:43 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
The XMLNSC parser can identify messages based on the root tag. |
|
Back to top |
|
 |
broker_new |
Posted: Thu Feb 11, 2010 11:02 am Post subject: |
|
|
 Yatiri
Joined: 30 Nov 2006 Posts: 614 Location: Washington DC
|
cool.
I am experiencing the problem in how to embed the space in pattern.
Message set it is not allowing the spaces when i put the pattern defined as follows.
I have placed a space between . and ,
Code: |
<xs:element name="Customer_First_Name" nillable="false">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
<xs:maxLength value="10"/>
<xs:pattern value="([a-zA-Z'. ,-])+"/>
</xs:restriction>
</xs:simpleType>
</xs:element> |
_________________ IBM ->Let's build a smarter planet |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Feb 11, 2010 11:06 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
There's no problem to do that at all. It works exactly like it is documented. |
|
Back to top |
|
 |
broker_new |
Posted: Thu Feb 11, 2010 11:10 am Post subject: |
|
|
 Yatiri
Joined: 30 Nov 2006 Posts: 614 Location: Washington DC
|
but the flow is not accepting when " " only space is sent. am i doing something wrong? _________________ IBM ->Let's build a smarter planet |
|
Back to top |
|
 |
kimbert |
Posted: Thu Feb 11, 2010 1:52 pm Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Quote: |
I have placed a space between . and , |
If you use [code] tags, the space will become obvious, and the entire XSD snippet will be much easier to read.
Just sayin' |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Feb 11, 2010 7:09 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
@ broker_new put the code tags for you as you're relatively new... next time you're on your own!  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|