index > Architecture, Tools, and Process for ISVs > how to show wcf proxy's datasets to the ui layer in a three layer...

how to show wcf proxy's datasets to the ui layer in a three layer...


Hello from Spain,

I have a client-server app. The client is made in three layers (service agent, bll, ui). Client connects to the server through a web service. The the web service's proxy is in the last layer, service agent, so we can see the datasets that come in the proxy from the bll, but i want them in the ui too. I haven't found any pattern or something to acomplish that and i can not find a solution without breaking the encapsulation of the bll.

Any suggestion?

Thanks in regards

creaturita

Your best bet is to look at the sample application PetShop (link below).

Basically where you have your datasets they have classes that they call the Model which is independent of all layers (just its own project and dll) and so you can reference it from any layer in the solution. This is pretty standard pratcice for n-tier applications. Note that to get a Model project using datasets you might want to consider using typed datasets.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/bdasamppet4.asp

JohnMichaelGrace
For these scenarios, I typically use a data transfer object (see Martin Fowlers example http://www.martinfowler.com/eaaCatalog/dataTransferObject.html). The DTO's are just classes with properties and no methods associated with them. They can be used by any layer in the application architecture, and thus get placed into a common assembly. I use these DTOs in the service interface, allowing me to change the domain model without breaking the service interface.


This posting is provided "AS IS" with no warranties, and confers no rights. MTC ISV Team [MSFT]
Michel Baladi
reply 3

You can use google to search for other answers

 

More Articles

• Running script
• implemnting cache in best possible way
• So Software as a Service is the next big thing ??again?
• Does anyone know some good places to look for Architects
• Introducing our newest forum!
• WMI.Net 2.0
• Architecture for the Download and Installation Manager.
• Independent. Sure, but at any price?
• Gantt Chart component/library
• Backup and Restore Data/Metadata for a Novel Backend.
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

• Independent. Sure, but at any price?
• Architecture for the Download and Instal
• Running script
• So Software as a Service is the next big
• Assigning new series to chart
• The official welcome post
• Gantt Chart component/library
• implemnting cache in best possible way
• Backup and Restore Data/Metadata for a N
• Data access layer generating software ap
• how to show wcf proxy's datasets to the
• WMI.Net 2.0
• Introducing our newest forum!
• Architecture - what it is and what it wi
• Does anyone know some good places to loo

Hot Articles

• Architecture - what it is and what it wi
• Introducing our newest forum!
• Architecture for the Download and Instal
• So Software as a Service is the next big
• WMI.Net 2.0
• Independent. Sure, but at any price?
• Backup and Restore Data/Metadata for a N
• Assigning new series to chart
• Data access layer generating software ap
• implemnting cache in best possible way
• how to show wcf proxy's datasets to the
• The official welcome post
• Does anyone know some good places to loo
• Running script
• Gantt Chart component/library

Recommend Articles

• Data access layer generating software ap
• Architecture for the Download and Instal
• The official welcome post
• Does anyone know some good places to loo
• Gantt Chart component/library
• Independent. Sure, but at any price?
• implemnting cache in best possible way
• Introducing our newest forum!
• So Software as a Service is the next big
• Backup and Restore Data/Metadata for a N
• how to show wcf proxy's datasets to the
• WMI.Net 2.0
• Running script
• Assigning new series to chart
• Architecture - what it is and what it wi