hi,

 i have created an sample webservice and my interface is 

@webservice(name="sample")
public interface Sample{
  public String validateMethod(SampleJavaBean s);
}

i have implemented the interface

public class SampleClass implements Sample{
   public String validateMethod(SampleJavaBean s){
    return s.getFirstName();
  }
}

now i am adding validations annotations to my bean :


@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SampleJavaBean", propOrder = {
    "firstName"
  })
@XmlRootElement(name="SampleJavaBean")
class SampleJavaBean {
 @XmlElememt(required = true, nillable =false)
 private String firstName();
}

now the problem is , even if i give null values and if i send the request
without the required field, the service is wrking fine, y the validation is
not happening? :confused: 

can any one solve this problem.. thanks in advance mates
-- 
View this message in context: 
http://www.nabble.com/XML-Validation-Nt-working-in-CXF-tp21995950p21995950.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to