Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Distributed Applications / May 2004

Tip: Looking for answers? Try searching our database.

Web Service Return a Class

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Brad Simon - 28 May 2004 13:21 GMT
I thought I had this, but I guess I don't

I would like my VB .NET web service to return an object, and a collection of that object.  I understand that I have to serialize the object and its collection, but I guess I don't know how to return what I want

In a distributed app, I am under the impression you create a class, and use a web service to expose limited functionality to that class, that is what I am trying to do. I have a 'People' collection class, and I want to return a set of people who are the children of person with ID='2'.  In my class I have a GetChildren(byval Person as int) as people.  I want to bring that collection back through the web service.  I have a lot of these to do, so re-creating, or mimicking the classes is not an option

I just need some sample code that I can run with

Thanks
Brad
Brad Simon - 28 May 2004 19:51 GMT
Once again I solve my own problems with help OUTSIDE the Microsoft newsgroups.  Why am I a member

The proble was that I was using readonly properties.  Apparently you can't serialize readonly properties.  I found the answers on the '4 guys' web site.  They have a great article on web services.
christian strevel - 30 May 2004 21:48 GMT
I guess you need to look on your own further instead of asking to the
newsgroups... remember, here will help you the guy who can/want to help you.

I always use this as the first resource, but always I keep on looking
everywhere... you just can't sit and wait to someone to do the work for you
:)

Cheers!

> Once again I solve my own problems with help OUTSIDE the Microsoft newsgroups.  Why am I a member?
>
> The proble was that I was using readonly properties.  Apparently you can't serialize readonly properties.  I found the answers on the '4 guys' web
site.  They have a great article on web services.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.