Return of typed DataSet from WCF service result in string "xs: string" not found

Consider a server providing a service through WCF. One of them OperationContractreturns a typed DataSet with a name TraceDataSetthat contains a snapshot of the trace on the server.

When the returned data set is returned, ReadXmlwhich occurs within the created file custom tool visual studio, the method ReadXmlSerializablegives

Undefined data type: 'xs: string'.

I have added WCF traffic to the client and server, but WCF communication works fine.

I did some research, but nothing is final, and I also get 404 errors on MSDN forums.

I checked the thread for XmlReader and it contains a namespace declaration xmlns:xs, so I got a little confused there.

If I serialize a DataSet to a file on the server (which is executed locally for the purpose of debugging), and I read this file from the client, it works, so I suspect something is happening through the WCF message, even if it fails.

The entered DataSet is declared in the general assembly, which is the link of both the client and the server. We do not use the regenerated DataSet created by the proxy in the / References folder.

We never had problems with tracing, until recently, and, unfortunately, we cannot indicate the change that caused this feature to break.

Does anyone have an idea why ReadXmlcan't find the data type xs:string?

+3
source share
4

, , , , System.Data. , , arround:

( getXml() traceData) . . , , .

0

SQL, , :

SELECT SERVERPROPERTY('ComputerNamePhysicalNetBIOS') AS CurrentMachineName

SQL-, , , :

SELECT CAST(SERVERPROPERTY('ComputerNamePhysicalNetBIOS') AS varchar(255)) AS CurrentMachineName

. , "anytype", XML xs: string.

0

. , DataSet DataType, Object. .

DataType, , . , . .

0

, , WCF DataSets. , WCF, POCO. , Trace, Trace.

-1

All Articles