Webservice returns recordset as XML-File

Discussion in 'ASP .Net' started by Michael Haberfellner, Aug 9, 2007.

  1. hi everyone,

    as newbee in asp.net-webservices i was looking for examples, solving the
    following problem:

    i do have to programm a webservice that connects to a sql-server and
    selects a recordset by the handed id (parameter of the webservice). so
    far no problem.

    but the webservice should return the data of the recordset as XML. for
    example the return-value could look like

    <id>1</id>
    <name>mike</name>
    <age>33</age>

    has anybody done this allready?

    i'd be glad for any hint, tipp or expample you could give me.

    thx and greets from vienna

    mike
    Michael Haberfellner, Aug 9, 2007
    #1
    1. Advertising

  2. If you mean: how to convert a dataset to a xml file, this code may help you.

    myDataSet.WriteXml(m_XmlFile, XmlWriteMode.IgnoreSchema)
    =?Utf-8?B?Y3NoYXJwZXI=?=, Aug 9, 2007
    #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. Vikas Yadav
    Replies:
    0
    Views:
    1,120
    Vikas Yadav
    Sep 9, 2003
  2. Ben Turner
    Replies:
    2
    Views:
    9,107
    Ken Cox [Microsoft MVP]
    Jan 2, 2004
  3. Bill
    Replies:
    1
    Views:
    98
    Tim Williams
    Jul 2, 2003
  4. Hung Huynh
    Replies:
    8
    Views:
    298
    Bob Barrows
    Sep 24, 2003
  5. Frakes
    Replies:
    1
    Views:
    232
    Anthony Jones
    Apr 5, 2007
Loading...

Share This Page