D
Dionisie Andrei
Hello,
I'm dealing with a rookie problem. I have a very simple webservice that
exposes a function that returns a typed datased named UserDataset. This
dataset is autogenerated from an xsd but is imported from another assembly.
Also, the data access layer is imported from another assembly.
So, my function is something like this:
[WebMethod]
public XApp.Common.Data.Useri.UserDataSet GetUseri()
{
XApp.Common.Data.Useri.UserDataSet dsUser = null;
using(XApp.DataAccess.Users u = new XHonda.DataAccess.Users())
{
dsUser = u.GetUseri();
}
return dsUser;
}
In the client, the consumer, i have a datagrid where I want to show this
dataset...
private void btnGetUseri_Click(object sender, System.EventArgs e)
{
TesterWS.TesterWebService myWS = new TesterWS.TesterWebService();
DataSet dsUsers = myWS.GetUseri();
//XApp.Common.Data.Useri.UserDataset dsU =
(XApp.Common.Data.Useri.UserDataset)dsUsers;
dgUseri.DataSource = dsUsers;
dgUseri.DataMember = "Users";
}
My problem is I don't know how to get that dataset as a
XApp.Common.Data.Useri.UserDataSet ! The datatset I get back from the
webservice is of type TesterWS.UserDataset and I can't even cast to the
original type. Any ideea ?
I'm dealing with a rookie problem. I have a very simple webservice that
exposes a function that returns a typed datased named UserDataset. This
dataset is autogenerated from an xsd but is imported from another assembly.
Also, the data access layer is imported from another assembly.
So, my function is something like this:
[WebMethod]
public XApp.Common.Data.Useri.UserDataSet GetUseri()
{
XApp.Common.Data.Useri.UserDataSet dsUser = null;
using(XApp.DataAccess.Users u = new XHonda.DataAccess.Users())
{
dsUser = u.GetUseri();
}
return dsUser;
}
In the client, the consumer, i have a datagrid where I want to show this
dataset...
private void btnGetUseri_Click(object sender, System.EventArgs e)
{
TesterWS.TesterWebService myWS = new TesterWS.TesterWebService();
DataSet dsUsers = myWS.GetUseri();
//XApp.Common.Data.Useri.UserDataset dsU =
(XApp.Common.Data.Useri.UserDataset)dsUsers;
dgUseri.DataSource = dsUsers;
dgUseri.DataMember = "Users";
}
My problem is I don't know how to get that dataset as a
XApp.Common.Data.Useri.UserDataSet ! The datatset I get back from the
webservice is of type TesterWS.UserDataset and I can't even cast to the
original type. Any ideea ?