title: Java Webservice with generic methods
body: <p>I was wondering if it is possible to make a generic webservice method in java like this:</p>
  
  <pre><code>@WebMethod
  public &lt;T extends Foo&gt; void testGeneric(T data){
  </code></pre>
  
  <p>However when I try to consume this with a Java client I get an error stating:</p>
  
  <p>[ERROR] Schema descriptor {<a href="http://####/" rel="nofollow noreferrer">http://####/</a>}testGeneric in message part "parameters" is not defined and could not be bound to Java.</p>
  
  <p>I know it is possible to make a method that takes a parameter such as List and this generates correctly using JAX-WS.</p>
  
  <p>I don't mind if there is a solution that means I am tied to using only a particular technology.</p>
  
  <p>Thanks,
  Dan.</p>