passing collection object to web service in .NET

V

vbvjain

Hi
Thanks for your suggestion, i even tried that but now the error that is
generated is "There was an error generating XML". If i declare the input
parameter of my web service method as object and pass a collection, it
adds a web reference in client project but it gave me same error of
generating XML in that also.
I m specifially using collections because the data it contains is very
complex, actually it is a collection of objects of class which itself
has a collection as one of its members.
Kindly get me out of this problem of generating the XML code.
I have not worked with XML before(more trouble).

One more thing If i add a reference to that dll file of my web service
the code works fine, but i need to add it as web reference.
 
P

Pradeep Kumar C

Hi,
Why can't you pass the object using the attribute [serilizable()] from
your web service.
From your client you need to give the referace for this class object also.

Thanks and Regards,
Pradeep Kumar C
 

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,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top