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.