We are using Spring and CXF to provide SOAP Web Services. The WSDL is being generated from Java Code.
Is there a way to define validation rules in Java code that would be applied to generated XSD?
For example, support for some of JSR 303 annotations would be great. In such case this code:
@Pattern(regexp = "[0-9]+/[0-9]+")
private String phone;
would evaluate to such XSD:
<restriction base="string">
<pattern value="[0-9]+/[0-9]+"></pattern>
</restriction>