Hi
I have an endpoint to pass xml... The service is in stream mode.
The error that I receive is: "CData elements not valid at top level of an XML document. Line 1, position 3" Error in WCF
This is my configuration.
<binding name="BasicHttpBindingStreamed" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" transferMode="Streamed" maxBufferPoolSize="2147483647" ><readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647"
maxNameTableCharCount="2147483647"/></binding>I change the service to buffer mode, and I don't receive errors.
I followed this link: https://stackoverflow.com/questions/12474530/xml-errors-thrown-via-ws-fed-authentication
I undestand that is better to use stream mode instead to buffer mode, but I have to use buffer mode.