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. Advertisements

  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. Advertisements

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:
    406
    Christopher V. Kimball
    Dec 11, 2004
  2. sangha
    Replies:
    4
    Views:
    747
    Ashish Pagey
    Mar 8, 2006
  3. Replies:
    3
    Views:
    547
    Thomas Hawtin
    Apr 6, 2006
  4. Hendrik Maryns
    Replies:
    2
    Views:
    419
    John B. Matthews
    Dec 2, 2008
  5. Ra Carter
    Replies:
    1
    Views:
    848
    sloan
    Mar 17, 2010
  6. Michael_vb

    Serializing custom business objects

    Michael_vb, Nov 13, 2006, in forum: ASP .Net Web Services
    Replies:
    4
    Views:
    200
    kferron
    Nov 15, 2006
  7. Max
    Replies:
    47
    Views:
    661
    Michael D. Kersey
    Aug 12, 2006
  8. Joel VanderWerf

    [YAML] serializing Class and Module objects

    Joel VanderWerf, Feb 3, 2006, in forum: Ruby
    Replies:
    3
    Views:
    498
    Joel VanderWerf
    Feb 11, 2006
Loading...