title: JAX-WS and XSD Validation
body: <p>I have a wsdl that has a imported xsd, this xsd has quite a restrictions like this:</p>
  
  <pre><code>&lt;xsd:simpleType name="len_type"&gt;
      &lt;xsd:restriction base="xsd:string"&gt;
          &lt;xsd:pattern value='[:alnum:]{4} [\d]{2} [\d] [\d]{2}' /&gt;
      &lt;/xsd:restriction&gt;
  &lt;/xsd:simpleType&gt;
  </code></pre>
  
  <p>So I would thind that when I deploy this ear to glassfish via netbeans that there would be validation done on the data that is passed in, but this is not the case.  Is there any calls I need to make to ensure that the data is validated before it is passed to my @WebService object and turned into a Java object.</p>