I have created an schema through an xsd.I have set minLength to 1 for a string field of simple type.Whenever i am passing the null value for this field pub.schema.validate service not failing the validation even though this validation error is showing in XML Spy.please let me know if i have missed any thing here.
Thanks for your reply.I am explicitely handling the isValid variable from the pub.schema.valid service to generate error mail and to log into error tables by setting to false for failIfinvalid.But if the tag value came null, isValid is coming up with true as it should come up with false.
Thanks for your inputs.The field i am validating is required.Below the snippet of code which causing the issue.While i have defined in another way like by using simple type then it is giving error as expected. If i am defined simple content in complex type then it is not validating this one.