Código:
import javax.xml.bind.annotation.Facets; public class Employee { @Facets(minInclusive="1",maxInclusive="10") int id; @Facets(pattern="[a-z][a-z0-9]{0,4}") String name; EmployeeRole role; //getter and setter }
Código:
Algo que me pueda faltar?2)type defination in mployeeservice.wsdl <xs:complexType name="employee"> <xs:sequence> <xs:element name="id" type="xs:int"/> <xs:element minOccurs="0" name="name" type="xs:string"/> <xs:element minOccurs="0" name="role" type="tns:employeeRole"/> </xs:sequence> </xs:complexType>
Un saludo