[Mono-list] XmlSerializerFormat
Bart
bart.deboeck at xenopz.com
Fri Feb 13 13:42:25 UTC 2015
Hi,
I'm using Mono 3.12.0 and noticed that the following code
[ServiceContract]
interface IZVTTerminalService
{
[OperationContract, XmlSerializerFormat]
[FaultContract(typeof(string))]
[WebGet(UriTemplate =
"ExecutePayment/{amountCents}/{remoteIP}/{remotePort}")]
XmlDocument ExecutePayment(string amountCents, string remoteIP,
string remotePort);
}
behaves different on Windows and Linux.
On Windows the returned XmlDocument is
<?xml version="1.0" encoding="utf-8"?>
<payment>
<Success>False</Success>
<ProtocolSpecificErrorCode>108</ProtocolSpecificErrorCode>
<ProtocolSpecificErrorDescription>abort via time-out or
abort-key</ProtocolSpecificErrorDescription>
</payment>
on Linux I get
<XmlDocument xmlns:i="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://schemas.datacontract.org/2004/07/System.Xml">
<InnerText>False108abort via time-out or abort-key</InnerText>
<InnerXml><payment><Success>False</Success><ProtocolSpecificErrorCode>108</ProtocolSpecificErrorCode><ProtocolSpecificErrorDescription>abort
via time-out or
abort-key</ProtocolSpecificErrorDescription></payment></InnerXml>
<Prefix/>
<PreserveWhitespace>false</PreserveWhitespace>
<SchemaInfo
xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Xml.Schema"
i:nil="true" />
<Schemas
xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Xml.Schema">
<d2p1:CompilationSettings>
<d2p1:EnableUpaCheck>true</d2p1:EnableUpaCheck>
</d2p1:CompilationSettings>
<d2p1:XmlResolver
xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.Xml"
i:type="XmlUrlResolver" />
</Schemas>
<Value i:nil="true" />
</XmlDocument>
Any idea what is going on?
Thanks,
Bart
--
View this message in context: http://mono.1490590.n4.nabble.com/XmlSerializerFormat-tp4665447.html
Sent from the Mono - General mailing list archive at Nabble.com.
More information about the Mono-list
mailing list