Kevon,
Because you have presented a solution to your own problem which may be helpful to future searches, this question is now PAQed and your points have been refunded.
EE_AutoDeleter
Main Topics
Browse All TopicsI am attempting to write an ASP.NET web service in .net 2.0. I would like it to return a custom object. I've written my object classes and added a reference to them in the web service. I've created the web-service with the return type of my ItemCollection class. I've included the [XmlInclude(typeof(ItemCol
What am I missing?
Here's an example of the code
[WebService(Namespace = "http://mycompany.com/")]
[XmlInclude(typeof(ItemCol
public class Utilities : System.Web.Services.WebSer
{
public Utilities() { }
[WebMethod(Description = "Gets a list of all Items")]
public CountryCollection GetAllItems()
{
ItemCollection objItemCollection = Items.GetAllItems(); //trust me, this part works!
}
[Serializable]
public class ItemCollection
{
private ArrayList m_aItems;
//bunch of stuff to fill the array list
//including add methods, remove methods, indexer properties, etc
}
[Serializable]
public class Items
{
private intID;
private string strStuff;
//property with get and set for strStuff
}
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: KevonPosted on 2007-11-26 at 12:49:16ID: 20352919
Wow! I've done a LOT of reading since I posted this. I find it hard to believe that nobody has commented on this one. For those of you who also want to do something like this, and are looking for an answer, I highly suggest checking out a book on Service Oriented Architecture in the specific language you're working in. I found an APRESS book that was great and gave me a wonderful solution. I'm seriously dissappointed in EE people for not coming up with a suggestion on such a rudimentary question.