Messageformat of MSMQ messages sent between VC7++ and .NET?
Posted on 2004-11-25
Hi everybody! Got a question for ya...
I have a mainsystem running VC7++ with all classes derived from CObject and implementing the Serialize()-method to serialize the class to a CByteArray. I use MSMQ to send messages ( the body is an ByteArray ) within this system and thus I can deserialize the message at the reciever successfully while it understands what a CByteArray is. This works fine for me and I´ve done some wrappers for this...
Now I have another system running .NET and I which to recieve/send the message from/to the mainsystem. While the messages sent in the mainsystem is CByteArray´s I cannot unpack this successfullly in the .NET environment.... I would like to, in some way, to be able to send/recieve messages between these 2 systems and now I would like some advise in selecting a format of the message that both systems understand.
I have the ability to change the code of the mainsystem to suite the needs of the .NET enironment but there´s many classes sent in the mainsystem with MSMQ that I rather not change these classes too much.... Can I in some way in VC7++ serialize/deserialize a class into/from XML ( with a schema )?
1. What message-format should I use to be able send/recieve messages between these 2 systems?
I´m rather new to XML ( Most of the programming I´ve done is actually in VC6++ ) so have that in mind when answering : )
Messages sent in the mainsystem can contain NULL-signs....