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>&lt;payment&gt;&lt;Success&gt;False&lt;/Success&gt;&lt;ProtocolSpecificErrorCode&gt;108&lt;/ProtocolSpecificErrorCode&gt;&lt;ProtocolSpecificErrorDescription&gt;abort
via time-out or
abort-key&lt;/ProtocolSpecificErrorDescription&gt;&lt;/payment&gt;</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.
_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to