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. 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. Replies:
    8
    Views:
    2,314
    deadsea
    Jan 2, 2005
  2. Replies:
    3
    Views:
    1,087
  3. Dimitri Ognibene
    Replies:
    4
    Views:
    824
    Dimitri Ognibene
    Sep 2, 2006
  4. Robert Millman

    Serialization / Deserialization across WebService Calls

    Robert Millman, Feb 5, 2004, in forum: ASP .Net Web Services
    Replies:
    1
    Views:
    108
  5. Ramunas Urbonas
    Replies:
    1
    Views:
    427
    Dino Chiesa [Microsoft]
    Jul 27, 2004
Loading...

Share This Page