![]() |
Returning custom collection from a webservice
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. |
Re: Returning custom collection from a webservice
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. Rodney wrote: > 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. |
| All times are GMT. The time now is 11:46 PM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.