RE: Data types in Pattern & Practices Web Service Software Factory



Hello Henrik,

I've also found your another thread regarding on a custom type with Generic
List member issue. I haven't noticed that you're using the "Service
factory", now I get it here. As for the "Service Factory", it by default
provide a recommend structure of webservice solution architecture and mapp
each abstract solution layer to certain visual studio projects in a
template solution. And you're surely able to customize them as your
specific scenario.

For your scenario here, if you think duplicate the same custom class in
both busicness and service contact layer, you can directly modify the
service contract and implemention layer and use those classes used in
business layer. However, make sure those classes are well defined for using
in ASP.NET webservice since they'll need to be serialized in XML soap
message. The reason why the "service factory" will create two set of such
classes in both service contact and business layers are that the classes
used in business layer may contains many fields/methods that are specific
to busines logic rather than data/properties. And webservice layer only
need some light weight classes which concentrate on the data it will hold.


#Web Service Software Factory
http://msdn.microsoft.com/msdnmag/issues/06/12/ServiceStation/Default.aspx?l
oc=en#S3


Hope this helps.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead



This posting is provided "AS IS" with no warranties, and confers no rights.

.



Relevant Pages

  • Re: Factory class - DA, BL, or UI layer?
    ... |> The same layer as the object it is designed to create. ... The Class Factory design pattern can be used for many ... There is no relationship between factories and layers, a class factory is ... Google for Design Patterns, Class Factory for examples of whre you could use ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Best knife steel?
    ... For a good quality knife, custom and factory aren't necessarily all that different. ... I think the difference is in the heat treating. ...
    (rec.knives)
  • Re: Abstract factory and Application layers
    ... The 'A' layer is a set of interfaces and base classes. ... concrete factory derived from your Abstract Factory base class. ... The concrete factory is, by definition, coupled to the classes it creates. ... abstract factory in A, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Abstract factory and Application layers
    ... The 'A' layer is a set of interfaces and base classes. ... concrete factory derived from your Abstract Factory base class. ... The concrete factory is, by definition, coupled to the classes it creates. ... abstract factory in A, ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: Behaviours - Am I mad
    ... set the drop-down lists to Custom, Custom, IE5, and select all the check ... boxes. ... Microsoft FrontPage MVP ... > content within layers, not the layer itself. ...
    (microsoft.public.frontpage.client)