JAX-WS and abstract classes in a complex type
Hi,
i'd like to have to following behaviour:
@WebMethod
publicint testMethod(ComplexType ct){
return ct.getProcessor().do(5,5);
}
///
publicclass ComplexType{
Processor p;// + getter + setter ...
}
publicabstractclass Processor{
publicintdo(int a,int b){}
}
publicclass ProcessorA{
publicintdo(int a,int b){
return a+b;
}
}
publicclass ProcessorB{
publicintdo(int a,int b){
return a*b;
}
}
//
// ...
ctA.p =new ProcessorA();
ctB.p =new ProcessorB();
port.testMethod(ctA);// = 10
port.testMethod(ctB);// = 25
--
But the wsimport tool does only generate stub classes for Processor and not for the subclasses, even if i use jax-ws & jaxb 2.1 and apply a @XmlSeeAlso tag in front of the Processor class. The result is that ctX.p = new ProcessorX() is not possible.
Thanks in advance

