Consume multiple resources in a RESTful Web Service



In my web server application I have a method, which modifies an xml document and looks similar to that:



@POST
@Path("somePath")
@Consumes({"application/xml", "application/zip"})
public Response modifyXml() {
//some processing
}


The consumed zip archive contains the xml file which needs to be modified and some other files. How can I distinguish between consumed xml file and the archive inside the method and which kind of method parameter should I use to represent this consumed resource?


No comments:

Post a Comment