Serialization

Discussion in 'ASP .Net Web Services' started by Dave T, May 12, 2009.

  1. Dave T

    Dave T Guest

    I have 3 projects in a VS solution: UI, Data Access, Object Model. The
    object model is as the name implies but it only has properties. The methods
    that an object model might otherwise contain are only useful for Data Access
    so I wanted to put them only in the DA project.

    The way I did that was to create classes in the DA project and inherit from
    the object model classes. So far so good. But now I want to XML serialize
    out from a webservice in the DA project in such a way that the UI can
    deserialize and use the structure. In effect I want to use the code from the
    derived class, *truncate* the derived class to the base class, then serialize
    it as base class.

    Any ideas?
    Dave T, May 12, 2009
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Maximus

    Serialization Error

    Maximus, Jan 19, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    4,979
    Gaurav Khanna [C# MVP]
    Jan 28, 2004
  2. Replies:
    8
    Views:
    2,240
    deadsea
    Jan 2, 2005
  3. Replies:
    3
    Views:
    1,024
  4. Dimitri Ognibene
    Replies:
    4
    Views:
    776
    Dimitri Ognibene
    Sep 2, 2006
  5. Ramunas Urbonas
    Replies:
    1
    Views:
    393
    Dino Chiesa [Microsoft]
    Jul 27, 2004
Loading...

Share This Page