• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to override receive method of MessageDispatcher in spring ws

 
Susmitha Metlapalli
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

can i override receive method of MessageDispatcher? How can i do that using spring ws framework.

Regards,
Susmitha.

 
Karthik Shiraly
Bartender
Posts: 1210
25
Android C++ Java Linux PHP Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are you actually trying to do?
Overriding MessageDispatcher may be one way to do whatever it is you want, but there may be much better ways.
 
Susmitha Metlapalli
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to transform response xml received from below messagetracing.sent or messagetracing.received

[sent.receive]
Sent response
 
Karthik Shiraly
Bartender
Posts: 1210
25
Android C++ Java Linux PHP Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Susmitha Metlapalli wrote:I want to transform response xml received from below messagetracing.sent or messagetracing.received

[sent.receive]
Sent response

Not sure I understand, but see if payload transforming interceptor is a better fit.
Since MessageReceiver is core to spring-ws, subclassing it might potentially involve a lot of coding and regression testing to duplicate its functionality.
Better to use the facilities that the framework provides for your purpose, which is interceptors.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!