users@wadl.java.net

RE: Multiple GET methods for same resource

From: Hadley, Marc J <mhadley_at_mitre.org>
Date: Wed, 9 Jun 2010 14:27:41 -0400

>our WADL defines multiple GET methods for the same resource, all with
>mediaType application/xml. The generated code then contains multiple
>methods with name getAsApplicationXml.
>Is there a way to work around it?
>I thought of a switch that changes the naming behavior where the method
>id is used as a prefix.
>
A switch could work. However, I'm puzzled why you have multiple GET methods in your WADL that all return the same media type - presumably there must be some kind of difference between them ?

Marc.