We are creating a WCF web service using WSSF. The idea is that it will provide our main database through the service and allows us to create various applications and websites on top of the service. At the moment, I am creating a simple client application that will download some data from this service, manipulate it, and then provide it to the user in the form of a CSV report file.
Now the question is, where should the business logic (which manages the data) be located? I decided that I would put him in the service. I already have a business layer with simple objects that map almost one to one with the database (customer, order, etc.). I decided that I would make several "higher level" objects to manipulate the data. For example, using a client, order and other objects, creating a report, etc. I thought the best place for this would be in the business layer for service. Thus, we could reuse this logic for various applications, if necessary.
Unfortunately, my boss does not agree. He wants to "sort out the problems" and said that the right place for this logic will be in the business layer inside the client application, and not in the service. I think it might be easier, but I would like to use my powerful object model inside the business service level to write this code. The objects exposed by the service are not “real” objects and in fact are only light data structures without the possibility of a complete object model that exists within the business level of the service.
What do you guys think? Thank you for help.
Cheers Mark
c # design-patterns wcf wssf
Mark evans
source share