Posted: Wed Oct 19, 2011 3:00 am Post subject: Validation properties
Centurion
Joined: 09 Jan 2006 Posts: 138 Location: India
Hi All,
What is the difference in validation when message validation is specified as "Content" and "Content and value" for input nodes?
What would be their performance impact?
The info center and search didn't help much. Could you please, explain with an example.
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
Performance impact is negligible. Content validates the structure and content+value validates the structure as well as the data contained inside the structure. Choose content+value unless you want to accept SOAP requests that do not conform strictly to your WSDL or XSD. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Choose content+value unless you want to accept SOAP requests that do not conform strictly to your WSDL or XSD.
That's good advice regardless of whether you're using SOAP. It applies to XML and text/binary data as well.
'Content' checks the simple data values against the schema facets ( i.e. it checks lengths, enumerations and ranges )
'Content and value' checks that the elements are declared in the schema and they obey the min/maxOccurs settings.
I would advise you to choose 'Content and value' always.
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