I have a package with JAXB annotated classes with an abstract superclass. I want to use this superclass in web service interface, so I can pass any of subclasses as a parame
Have you specified the concrete implementation in your web service request? This works fine for me:
Abstract base class:
@XmlSeeAlso({Foo.class, Bar.class})
public abstract class FooBase
{
...
}
Implementation class:
@XmlRootElement(name = "foo")
public class Foo extends FooBase
{
...
}
Web service method:
public String getFoo(@WebParam(name = "param") final FooBase foo)
{
...
}
Request: