On Jan 27, 2010, at 1:24 PM, Dário Abdulrehman wrote:
>
> If I invoke a WS with a typo in one of the query/form parameters it is ignored.
> Is there a way of forcing an error to be issued when one of the parameters is unknown?
> My present solution is to inspect the paramters in @Context UriInfo with getQueryParameters but I would like to reject the request if one of the parameters is wrong, without having to write any code, if possible.
>
Query params aren't used when mapping a request to a Java method so you won't get any automatic error generation if a user sends an unknown param or fails to send a required param. Sorry but you'll have to write some code !
Marc.