removing diffgram from .net web service returning dataset

Posted by FrenchiInLa on Stack Overflow See other posts from Stack Overflow or by FrenchiInLa
Published on 2010-04-23T16:28:12Z Indexed on 2010/04/23 16:33 UTC
Read the original article Hit count: 374

Filed under:
|
|
|

per my client request I have been requested to return a dataset. basically it's an arraylist that i convert to dataset as follow

 DataSet ds = new DataSet();
 DataTable tbl = new DataTable("Table");
 DataRow drow;
 tbl.Columns.Add("ID", Type.GetType("System.String"));
 tbl.Columns.Add("Name", Type.GetType("System.String"));
 foreach (NameIDPair item in AL)
        {
            drow = tbl.NewRow();
            drow["ID"] = item.ID;
            drow["Name"] = item.Name;
            tbl.Rows.Add(drow);
        }
 ds.Tables.Add(tbl);

the problem with my client is this web service add a diffgram like diffgr:hasChanges="iserted" tag to each row, and they're pretending is not consistent with other web services used by them. How can I remove this tag in the XML returned? Any help would be greatly appreciated. Thanks

© Stack Overflow or respective owner

Related posts about web-services

Related posts about .net-3.5