• Post Reply Bookmark Topic Watch Topic
  • New Topic

Need solution for generic Rest service (Apache CXF)  RSS feed

Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to apache CXF and REST.

I am using apache CXF and trying to write a generic rest interface which works with any kind of DTO which implents DTOIntf.

Super interface for each DTO is DTOIntf

rest interface which i want to write would be as follows:

This should recieve JSON from client for specific DTOs which should be converted to DTOIntf.

I am not sure how this will be achieved.

Is there any way to pass specific DTO from client which will be mapped to generic DTO interface "dto" of create method?

Can it be done through customizing Jsonprovider implementation?
Of course, I found a very beautiful couch. Definitely. And this tiny ad:
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!