Win a copy of Microservices Testing (Live Project) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

jax-ws support for java inheritance types

Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there,

I have a bottom up web service generated for a java app. The input/output classes for the java app are custom types.

Something like this: CustomOutput runBusiness(CustomInput)

CustomInput is something like this
int id; String name; String description;
Myobject obj; //concrete object
MyType typeObj; // generic type obj;
Per the java app design MyType obj was created to accept any of the derived types and keep the interface generic. So accordingly derived classes of MyType like (AType, BType etc can be passed as part of the CustomInput object). MyType does not have any attributes of its own its more like a baseDto.

Now when I have generated the web service artifacts the converted schema shows a Mytype attribute with its internal content blank.

How should i be able to slam in appropriate type (Atype,Btype with their attributes) so the calling web service client can see exactly what it needs to pass.

Let me know how to tackle this situation. Do I have to create separate webservice or should I tweak the java customInput object.

    Bookmark Topic Watch Topic
  • New Topic