I added the @Consumes annotation, because the default value is application/xml. Since the HTTPServer compare behaviours taking into account all the request information (including the mediatype), there was no way to know if the request was sending real xml or it was just the default value.