Author |
Message
|
DJN2 |
Posted: Mon May 11, 2009 5:46 am Post subject: Putting Restrictions on MRM |
|
|
Apprentice
Joined: 02 Jan 2009 Posts: 27 Location: New Jersey
|
I have created an MRM for an XML message in which I want to put restrictions on element lengths and values. I can not find any documentation that shows me how to do this. Can anyone point me to the documentation or tell me how to set these restrictions? |
|
Back to top |
|
 |
Vitor |
Posted: Mon May 11, 2009 6:06 am Post subject: Re: Putting Restrictions on MRM |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
|
Back to top |
|
 |
DJN2 |
Posted: Mon May 11, 2009 6:30 am Post subject: |
|
|
Apprentice
Joined: 02 Jan 2009 Posts: 27 Location: New Jersey
|
Thank you Victor.... I see that now. Am I correct in assuming that the input message will not parse if a one character element in the message definition has a enumeration restriction set to A or B and the value of the element is C? |
|
Back to top |
|
 |
WMBDEV1 |
Posted: Mon May 11, 2009 6:33 am Post subject: |
|
|
Sentinel
Joined: 05 Mar 2009 Posts: 888 Location: UK
|
You are correct if you tell it to validate "Content And Value".
Why are you using the MRM domain to parse the XML message, why not XMLNSC? (dont use the other XML domains as these are not validating domains and have been superceded by XMLNSC) |
|
Back to top |
|
 |
DJN2 |
Posted: Mon May 11, 2009 7:02 am Post subject: |
|
|
Apprentice
Joined: 02 Jan 2009 Posts: 27 Location: New Jersey
|
I used MRM because I was under the impression that I needed to define the message file as MRM to do the validations. I can now see by your earlier response that it is possible to do the validations on a XMLNSC.
How do you tell it to validate 'Content and Value'? Is this done be setting both the Length Constraints and the Enumerations on the Values Contraint panel for the affected type? |
|
Back to top |
|
 |
Vitor |
Posted: Mon May 11, 2009 7:14 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
DJN2 wrote: |
How do you tell it to validate 'Content and Value'? |
Would you believe -
By setting the Validation on the MQInput node to "Content and Value"?
Strange but true.  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|