Serialization

Discussion in 'ASP .Net Web Services' started by Luca, Oct 26, 2005.

  1. Luca

    Luca Guest

    I'd like to have a [Web Method] that return an object which contanis an
    Hashtable. How could I serialize classes by myself so that I can add the web
    reference without have an exception?

    Thanks in advance, Luca
    Luca, Oct 26, 2005
    #1
    1. Advertising

  2. Hi Luca,

    Use Xml serialization attributes from System.Xml.Serialization
    namespace. This way the CLR would know how to correctly serialize your
    classes.

    Claudiu

    Luca wrote:
    > I'd like to have a [Web Method] that return an object which contanis an
    > Hashtable. How could I serialize classes by myself so that I can add the web
    > reference without have an exception?
    >
    > Thanks in advance, Luca
    Claudiu Tomescu, Oct 27, 2005
    #2
    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,962
    Gaurav Khanna [C# MVP]
    Jan 28, 2004
  2. Replies:
    8
    Views:
    2,225
    deadsea
    Jan 2, 2005
  3. Replies:
    3
    Views:
    1,009
  4. Dimitri Ognibene
    Replies:
    4
    Views:
    764
    Dimitri Ognibene
    Sep 2, 2006
  5. Ramunas Urbonas
    Replies:
    1
    Views:
    381
    Dino Chiesa [Microsoft]
    Jul 27, 2004
Loading...

Share This Page