In simple terms, why do we need 'a bean to bean mapping service' (like Dozer) in a web-application.
Suppose I'm working on a web-service.
- I'm receiving an XML in request.
- I fetch the the values from XML elements.
- Perform the required operation on the fetched values.
- Prepare the response XML.
- Send the response XML as response
Why should I add one more steps of mapping XML elements to own custom elements.
I'm not able to convince myself, probably because I'm not able to think of a better situation/reason.
Please suggest, with example if possible.