locked
Returning int array RRS feed

  • Question

  •         [WebGet]
            public IEnumerable<int> GetArray()
            {
                return new int[] { 1,2,3};
            }

     

    Exception at client:
    Error processing response stream. The XML element contains mixed content.

     

    I thought you could return primitive types and collections of primitive types?  I did I read that wrong.

    Monday, October 6, 2008 7:51 PM

Answers

  • I am able to repro this on my machine and will open a bug against this. Having said that, we know the client support for service operations in V1 was very limited and we need to work on that for our next version.

     

    Thanks

    Pratik

    Tuesday, October 7, 2008 6:03 PM
    Moderator

All replies

  • I am able to repro this on my machine and will open a bug against this. Having said that, we know the client support for service operations in V1 was very limited and we need to work on that for our next version.

     

    Thanks

    Pratik

    Tuesday, October 7, 2008 6:03 PM
    Moderator
  • Is this fixed in the latest release of Ado.Net data services?

     

    Friday, June 4, 2010 4:06 PM
  • Hi,

    Unfortunately the answer is still no. The latest release still doesn't support parsing of collections of primitive types on the client.

    Thanks,


    Vitek Karas [MSFT]
    Monday, June 7, 2010 12:45 PM
    Moderator