Custom XML Webservice serialization

Discussion in 'ASP .Net Web Services' started by news.microsoft.com, May 16, 2006.

  1. We are currently working on an enterprise application with a complex domain
    model. We have run into a situation where we want to customize the
    serialization process done by the webservices. Could you please help us with
    the following questions on webservice serialization -

    1. Can we serialize just the state of a serializable object by considering
    just the private fields, and not the public properties, which is the
    conventional way Web Services serialize objects?

    2. We have tried implementing IXmlSerializable and using the
    XMLSchemaProvider attribute, and this works fine till we run into a case
    when the return type of a WebMethod is references through an abstract class,
    where we start getting a 'Cannot instantiate an abstract class' exception.

    Please let me know if more information is needed to answer these questions.

    Thanks

    Ranjan
     
    news.microsoft.com, May 16, 2006
    #1
    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. Tobi Krausl
    Replies:
    0
    Views:
    444
    Tobi Krausl
    Nov 18, 2003
  2. Replies:
    8
    Views:
    2,488
    deadsea
    Jan 2, 2005
  3. Replies:
    3
    Views:
    1,226
  4. Dimitri Ognibene
    Replies:
    4
    Views:
    1,008
    Dimitri Ognibene
    Sep 2, 2006
  5. Robert Millman

    Serialization / Deserialization across WebService Calls

    Robert Millman, Feb 5, 2004, in forum: ASP .Net Web Services
    Replies:
    1
    Views:
    174
  6. Ramunas Urbonas
    Replies:
    1
    Views:
    581
    Dino Chiesa [Microsoft]
    Jul 27, 2004
  7. Jay Douglas

    WebService, object inheritance, serialization errors

    Jay Douglas, Sep 13, 2007, in forum: ASP .Net Web Services
    Replies:
    1
    Views:
    234
    realapak
    Sep 27, 2007
  8. Erik Wasser
    Replies:
    5
    Views:
    813
    Peter J. Holzer
    Mar 5, 2006
Loading...