Returning custom collection from a webservice

R

Rodney

I have a strongly typed custom collection that is filled from an xml
file. This works fine inside my web service, but not when I try to send
it to the client. The proxy class changes the return type to an array
of [my object]. And even though the collection had 3 items in it on the
web service end the array passed to the client is empty. Also one of
[my object]'s properties is another custom collection.

I've found a few forums posts, with people having the same problems but
no solutions. The closest I've found was a vague reference to using the
"SchemaImporterExtensions."

I'm not familiar with this at all. If someone could point in the
direction of a solution or explanation of what the Schema Importer
Extensions is, it would be very helpful.
 
R

Rodney

Also I'm using C# in VS2005, i could modify the references.cs file, but
I'd have to modify it everytime i update the web reference. Which is
not practical at all.
 

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

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top