Changes between Version 1 and Version 2 of maestro/MaestroAPI/codebasics


Ignore:
Timestamp:
May 22, 2008, 12:14:30 PM (16 years ago)
Author:
ksgeograf
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • maestro/MaestroAPI/codebasics

    v1 v2  
    2828Many functions in the ServerConnectionI are overloads that merely insert appropriate default values. To avoid generating large amounts of trivial code, I have added the abstract base class !ServerConnectionBase. The base class declares some abstract methods (such as !GetResourceXmlData) and implements functions using these abstract methods. The real classes (!HttpServerConnection and !LocalNativeConnection) can then be limitied to implementing these abstract methods.
    2929
    30 Most functions in the !ServerConnectionBase class reads an Xml document from the server, and creates an object based on the Xml. To achieve this, the .Net !XmlSerializer class is used. When saving an object, the resulting Xml __must__ be encoded in UTF-8, and the !Utf8XmlWriter does just this. When creating an UTF-8 encoded Xml document in .Net, it inserts the standard UTF-8 BOM marker. Unfortunately the !MapGuide server has a bug that prevents it from correctly reading a document with a BOM.
     30Most functions in the !ServerConnectionBase class reads an Xml document from the server, and creates an object based on the Xml. To achieve this, the .Net !XmlSerializer class is used. When saving an object, the resulting Xml __must__ be encoded in UTF-8, and the Utf8XmlWriter does just this. When creating an UTF-8 encoded Xml document in .Net, it inserts the standard UTF-8 BOM marker. Unfortunately the !MapGuide server has a bug that prevents it from correctly reading a document with a BOM.
    3131
    3232The Utility class contains various static methods, such as !CopyStream (why is this not in the .Net framework?).