[mapguide-internals] Requirements for a MgSerializable derived class that travels between server/web tiers

Jackie Ng jumpinjackie at gmail.com
Thu Jul 18 03:11:45 PDT 2013


Hi All,

Could anyone shed some light as to what is required for a new class that
derives from MgSerializable to properly travel between the server and web
tiers?

I have this new MgTile class in my sandbox branch that is blowing up on
deserialization from the web tier (it's throwing a stream header exception
trying to deserialize the MgDateTime member here:
http://trac.osgeo.org/mapguide/browser/sandbox/jng/http304/Common/MapGuideCommon/Services/Tile.cpp#L68)

I've given MgTile a new class id
(http://trac.osgeo.org/mapguide/browser/sandbox/jng/http304/Common/MapGuideCommon/System/MapGuideCommonClassId.h#L138)

I've also registered this class with the MgClassFactory
(http://trac.osgeo.org/mapguide/browser/sandbox/jng/http304/Common/MapGuideCommon/System/MapGuideCommonFactory.cpp#L114)

Am I missing something else?

- Jackie



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Requirements-for-a-MgSerializable-derived-class-that-travels-between-server-web-tiers-tp5067310.html
Sent from the MapGuide Internals mailing list archive at Nabble.com.


More information about the mapguide-internals mailing list