Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RestEasy Delete a List of Integers

 
Shannon Sims
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone, thanks for reading my post.

I'm new to Resteasy and web services, so I greatly appreciate any help or guidance you can provide. I'm trying to delete a List of Intergers from a Rest server. If I want to delete a list of integers (ids) from the database, does my interface have to declare the @Path?

CLIENT:
The client broker:

The client side interface:


SERVER:
The server side implementation of my client side interface (above):

When I execute the above code I get a RuntimeException: could not find writer for content-type application/xml type: java.util.List. I do have the "resteasy-jaxb-provider.jar" added to Eclipse /WEB-INF/lib directory.

I've tried declaring and undeclaring the Path, Consumes and modified the delete paramters but nothing I do works. The web and documentation doesn't provide much information on @Delete.

Thanks for any help you can provide!
Environment: Windows 7, JBoss 5.1, Eclipse Helios, RestEasy 2.3.5
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic