title: SOAP and REST Webservice with one implementation in Java EE
body: <p>Is it possible (Java EE, JBoss 6) to cleverly annotate Java code to provide both RESTful and SOAP webservices without implementing two methods?</p>
  
  <p>I'm thinking about:</p>
  
  <pre><code>@Local
  @Path("/service")
  @WebService
  public interface SomeService {
      @GET @Path("somemethod")
      @WebMethod
      public String someMethod (@QueryParam("s") String someParam);
  }
  </code></pre>
  
  <p>Please notice <strong>both</strong> <em>@Path</em> and <em>@WebService</em> annotations (above example does not work unfortunately).</p>