Serializing objects?

Discussion in 'ASP .Net Web Services' started by bbenham, Feb 25, 2004.

  1. bbenham

    bbenham Guest

    I want my web service to return an actual object to the caller. I assume that my object must somehow be serializable, but not sure. What do I need to do here? Could use an XMLSerializer to serialize my object, but not sure.
    bbenham, Feb 25, 2004
    #1
    1. Advertising

  2. Just tag the method as a web service and the XML serialization engine will do the rest. Specifically is serializes public fields and pro1perties of you object. You can have fine-grained control of serialization if you want via attributes, but that isn't require

    hope this helps

    ~harris
    Harris Reynolds, Feb 26, 2004
    #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. Christopher V. Kimball

    Serializing generic objects

    Christopher V. Kimball, Dec 11, 2004, in forum: Java
    Replies:
    0
    Views:
    335
    Christopher V. Kimball
    Dec 11, 2004
  2. sangha
    Replies:
    4
    Views:
    601
    Ashish Pagey
    Mar 8, 2006
  3. Replies:
    3
    Views:
    486
    Thomas Hawtin
    Apr 6, 2006
  4. john smith
    Replies:
    0
    Views:
    364
    john smith
    Aug 9, 2003
  5. Hendrik Maryns
    Replies:
    2
    Views:
    325
    John B. Matthews
    Dec 2, 2008
Loading...

Share This Page