This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
john sal
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?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!