Returning custom collection from a webservice

Discussion in 'ASP .Net Web Services' started by Rodney, Sep 12, 2006.

  1. Rodney

    Rodney Guest

    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, Sep 12, 2006
    #1
    1. Advertising

  2. Rodney

    Rodney Guest

    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.
     
    Rodney, Sep 12, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Dylan
    Replies:
    5
    Views:
    444
    Daniel T.
    Mar 22, 2005
  2. Øyvind Isaksen
    Replies:
    1
    Views:
    1,027
    Øyvind Isaksen
    May 18, 2007
  3. Terry Holland
    Replies:
    9
    Views:
    230
    Steven Cheng[MSFT]
    Oct 28, 2005
  4. Donald Simpson

    Web Custom Control & Custom Collection problem

    Donald Simpson, Jul 11, 2003, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    145
    Donald Simpson
    Jul 11, 2003
  5. Replies:
    0
    Views:
    136
Loading...

Share This Page