• Post Reply Bookmark Topic Watch Topic
  • New Topic

Generic return types with @WebMethod JAX-WS  RSS feed

 
Marius Popescu
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have the fallowing problem : can JAX-WS handle the code below ? It can't make the cast to subclasses of Person ...


For the code above, a call to getPerson will return in SOAP UI:



but if I add another method, no matter what it does, return null, etc, as long as it has the specific type declared than JAX WS works well :



For the code above, a call to getPerson will return in SOAP UI:



So I guess the problem is that it can't map those objects unless they are declared somehow, in this case in the return type of another object.
Can they be declared in another way ?
Thank you for your help
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!