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?
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?
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)
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?
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