Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Web Services (http://www.velocityreviews.com/forums/f64-asp-net-web-services.html)
-   -   Returning custom collection from a webservice (http://www.velocityreviews.com/forums/t786520-returning-custom-collection-from-a-webservice.html)

Rodney 09-12-2006 08:50 PM

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.


Rodney 09-12-2006 09:04 PM

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.