Reducing XML output

Discussion in 'ASP .Net Web Services' started by Wagner, Mar 8, 2005.

  1. Wagner

    Wagner Guest


    I'm a newbie in web services programing so I have a few questions:
    Is it possible to reduce size of xml output produced by .NET web service?
    I'm using SQLDataAdapter.Fill(DataSet, "Name") statement to fill dataset
    which is returned then by service. Web service type is DataSet.

    It works fine but I'd like to cut out begining of xml which is some kind of
    description of the xml because it takes bandwidth when is transfered.

    Thanks in advance
    Wagner, Mar 8, 2005
    1. Advertisements

  2. Wagner

    Dan Rogers Guest

    One thing to do right off is to not define methods the return data sets.
    These methods will not be callable by non-.NET applications. Instead,
    define custom types that you return, and have your service populate those
    types from your back-end database ministrations.
    Dan Rogers, Mar 8, 2005
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.