Passing an object containing multiple DataSet's to a WebMethod

M

MuZZy

Hi,

My problem is the following: i have a class like:
[Serializable]
class c{
public DataSet m_dsFirst;
public DataSet m_dsSecond;
public string m_sName;
void c()
{
m_sName="Test";
m_dsFirst = <some dataset>;
m_dsSecond = <some other dataset>;
}
}

Now, when i pass an object of this class as a return value of a web
method (or as an argument to a web method), it doesn't serialize those
datasets, all i see is m_sName.

How do i use such a class with web services?

Thank you,
MuZZy
 
S

Steven Cheng[MSFT]

Hi MuZZy,

Thank you for posting.

Regarding on this issue I have seen your another duplicated thread in the
following newsgroup:

Newsgroups: microsoft.public.dotnet.framework.webservices
Subject: Passing an object containing multiple DataSet's to a WebMethod

I have posted my response there. If you feel it convenient that we continue
to discuss in that thread. please feel free to post there.

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top