Hi!

I've got a rather basic (ie. noob) question about the validation of data send 
over to an Webservices endpoint.

What is the best way for an JSR-181 endpoint to validate incomming data on 
length, pattern, etc. before inserting it in a DB or something ? Is there 
anyway to set the pattern, minLength or maxLength constraints in the generated 
WSDL (Is it even allowed to use XML schema constraints in an WSDL)?

Or do you manually have to check the POJO's and throw a custom error if the 
validation fails (ie. use the WSDL "fault message")?

TIA



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3951708#3951708

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3951708


_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to