I\'m working on a class which sends a RequestDTO to a Web Service. I need to validate the request before it is sent.
The request can be sent from 3 different places and
Another approach would be to enforce that contract in the Request object itself. If a field is required or can't be null, say so when the Request is created.
Create the Request in such a way that it's 100% valid and ready to go when the constructor exists.
I'd also create that String version in the Request toString() method. It should know how to render itself.