I defined my xsd this way (partial):
<xs:element name="entityNo" minOccurs="1" maxOccurs="1">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
<xs:maxLength value="20"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
but when i send with SoapUI a string longer than 20 my Endpoint still receives it as if it was a valid input.
How can i fix this?
OK, restriction works, i just had to add the PayloadValidatingInterceptor interceptor in spring-ws config file: