I have a domain object that is used throughout my application. I’m writing a web service to allow programmers to enter these types of objects programmatically. Should I accept my domain object as a parameter, or should I write a specific object for use exclusively in web services?
Share
I prefer to write a specific object for use exclusively in web services, for multiple reasons:
In short, using another object layer for the web service is more flexible, de-coupled, and controlled.