Tema: @Facets
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 22/03/2016, 10:54
sirdaiz
 
Fecha de Ingreso: diciembre-2010
Mensajes: 459
Antigüedad: 13 años, 4 meses
Puntos: 21
@Facets

Tengo este problema (http://stackoverflow.com/questions/2...f-soap-service)

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:
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>
Algo que me pueda faltar?

Un saludo
__________________
Oye los consejos de todo el mundo, y sigue el tuyo.
Si te han ayudado deja un karma y si no te han ayudado pero vez util la información tb deja un karma xD
Sirdaiz