Page 1 of 1

Serialize

Posted: Wed May 09, 2007 11:46 am
by stevep
In my project I want to pass messages between applications via MSMQ or shared database fields. Is there a way to serialize the SubmitSm object or load unload the complete object from a byte string?

Steve

Posted: Wed May 09, 2007 4:45 pm
by alt
Each SMPP packet has method GetBytes which returns byte array of this packet. Opposite serialization currently not implemented.

Posted: Sun Jul 01, 2007 10:26 am
by stevep
Hi,

Do you have any plan to serialise the data so that the whole component could be loaded and unloaded from a Byte array. I have this functionality now with the other component I use, I can not move without it personally.

Steve

Posted: Sun Jul 08, 2007 9:31 am
by alt
in version 1.2.4 I have implemented SubmitSm object serialization methods.
Please check it.

Posted: Sun Jul 08, 2007 7:37 pm
by stevep
Brilliant..

:D

I found the SubmitSM.GetBytes to load a byte aray, how do I create an SubmitSM from the byte array?

Steve

Posted: Mon Jul 09, 2007 8:26 am
by alt
byte[] SubmitSM.Serialize(SubmitSM submit)
SubmitSM SubmitSM.Deserialize(byte[] data)