Home Dashboard Directory Help
Search

WCF Service Opertation : Unable to return collection of type Enumerbale<string> by c_roots


Status: 

Active


8
0
Sign in
to vote
Type: Bug
ID: 767210
Opened: 10/12/2012 9:33:39 AM
Access Restriction: Public
0
Workaround(s)
view
3
User(s) can reproduce this bug

Description

Experiencing the same issue as reported here

http://social.msdn.microsoft.com/Forums/en-US/adodotnetdataservices/thread/fff6ab98-7308-4b68-b1f3-6d69dc95c940

when trying to access results from a service operation,
[WebGet]
        public IEnumerable<string> GetSuppliersForCommonReference(int commonReference)
        {
            ......
         }

when unit testing recieve exception with message,

Exception message,
An XML node of type 'Element' was found in a string value. An element with a string value can only contain Text, CDATA, SignificantWhitespace, Whitespace or Comment nodes.

tried creating testmethod in web service as per example here,
http://msdn.microsoft.com/en-us/library/hh230677.aspx

same result occurs


Details
Sign in to post a comment.
Posted by Microsoft on 10/12/2012 at 9:50 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.
File Name Submitted By Submitted On File Size  
TestProject.zip 3/11/2013 13.25 MB