Hi MuZZy,
Welcome to the MSDN newsgroup.
From your description, I understand that you're developing an ASP.NET
webservice and in one of the webmethod, you return an comnplex type object
which contains some DataSet as its public members. However, you find that
the webservcie client can only get other fields rather than the DataSet
members, correct? If anything I missed ,please feel free to let me know.
Based on my local test, such type which contains DataSet object as member
can be correctly transfered from server to client through webservice. I'm
thinking whether this is a class or project specific issue. Have you tried
this in other webservice application to see whether they also suffer such
problem? Also, here is the test application's code, you can have a test on
your side to see whether it works:
=========================
...................
[WebMethod]
public MyData GetCompData()
{
MyData md = new MyData();
DataSet ds1 = new DataSet("ds1");
DataTable dt1 = new DataTable("dt1");
dt1.Columns.Add("name");
DataRow dr = dt1.NewRow();
dr[0] = "Name1";
dt1.Rows.Add(dr);
ds1.Tables.Add(dt1);
md.ds1 = ds1;
md.ds2 = ds1.Copy();
md.name = "md1";
return md;
}
..................
public class MyData
{
public DataSet ds1;
public DataSet ds2;
public string name;
public MyData()
{ }
}
===========================
Regards,
Steven Cheng
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may
learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.