Hi,
I am trying to design a service layer. Service layer interacts with many clients via remoting but all the clients related to same business group.
My question is how do I design my service for loose coupling
say client 1 needs
PersonResponseDTO getPersonDetails(PersonDTO)
say client 2 needs
PersonResponseDTO getPersonWithAllHisPets(PersionDTO)
PetResponseDTO getPetsWithNoOwners(PetDTO)
My concern here is, I start having DTO's like this I will end up creating lot of DTO's.
I am afraid this is tight coupling.
we can
exchange data with xml but I do not want parsing overhead because these application purely internal.
How best I can take input from client and give response back.
Since each client need different level of details, do you guys know how best we can achive this?