C#.NET Web Service Help

Associate
Joined
28 Nov 2004
Posts
1,237
Location
Birmingham
Hi there,
I'm creating a webservice to return a number of items from a database. At the moment, I'm returning a DataSet of my results in the file. This is working ok but I have noticed my results are grouped as "NewDataSet". Is there a way I can customise the format of the XML returned.
e.g.
Code:
<NewDataSet xmlns="">  <Item diffgr:id="item1" msdata:rowOrder="0">   <unique_id>171</unique_id>   <reference>ITM-171</reference>     <title>test 3</title>    </Item>  <Item diffgr:id="item2" msdata:rowOrder="1">  <unique_id>160</unique_id>    <reference>ITM-171</reference>   <title>test 1</title>   
</Item>
 
Ok, so it looks like I drop the Dataset :)
This is a first attempt at a service so I'm expecting to be making improvements over time as well. Thanks both, I'll read up!
 
I have seen that and whilst I'd like to, the server this will be deployed to is limited to .NET 3.5 at the moment so it's a no go...isn't it?
 
Last edited:
Back
Top Bottom