I need to define a Jax-RPC Web Service, with a parameter with a max length.
@SOAPBinding(style = Style.RPC)
public interface MessageService {
public String sendMessage(@WebParam(partName = "id") String id,
@WebParam(partName = "name") String name,
@WebParam(partName = "mesg") String mesg);
Where id must be 8 characters. How can I define this constraint in Jax-RPC annotation or with configuration?