Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Unable to return an IList of Authors from a WebService

Reply
Thread Tools

Unable to return an IList of Authors from a WebService

 
 
Surya Yadav
Guest
Posts: n/a
 
      09-26-2004
I have a webservice method that is unable to return an
IList of authors. Even XmlInclude does
not seem to work.
My webservice method calls Author.GetAuthors() to build
and return an IList of authors.
The webservice method is defined as:
[WebMethod]
public IList GetAllAuthors()
{
Author author=new Author();
return author.GetAuthors();
}
The Author class is defined in a separate class library
called AuthPubsDAL. Author.GetAuthors() is defined as
public IList GetAuthors()
{
....}
which accesses the pubs database and builds an arraylist
of author objects.

I added [XmlInclude (typeof(Author))] to the webservice
class, to the Author class and to the WebMethod
GetAllAuthors() which is part of the webservice class
with no luck. I am not sure as to what's the proper use
of XmlInclude and where it should be added. Please help.

Note: I have already seen the responses to a similar
subject " still having problem in returning arraylist of
objects in webservice". None of the suggestions make any
difference.
Surya

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How to get the ContentPlaceHolders IList of a MasterPage bruce barker ASP .Net 1 12-19-2006 08:13 AM
Can I convert IList to a DataSet, DataTable or DataView? =?Utf-8?B?Tmljaw==?= ASP .Net 6 07-19-2006 06:39 PM
question about proper way to show an IList of objects? Flip ASP .Net 1 03-28-2005 06:17 PM
Need to pass a method an Ilist DaveF ASP .Net 1 12-08-2004 02:56 PM
Implement IList Interface frank ASP .Net 0 07-11-2003 09:03 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57