Hi,
I have a problem sending messages between message queues. The sending of the messages is done using the automation of NAV2009 R2 (Classic). The receiving is done by .NET variables in NAV2016. I currently receive the send messages in my queue, but when I try to read them from NAV 2016 I keep getting the same error: "Cannot recognize the serialization format".
I have tried "System.Messaging.ActiveXMessageFormatter" and "System.Messaging.XmlMessageFormatter" but no luck.
Does anybody has an idea on how to continue?
The code that is execute:
QMsg := Q.Receive(TS.TimeSpan(0,0,10));
QMsg.Formatter := QBinaryFormatter.BinaryMessageFormatter;
CLEAR(myVariant);
myVariant := QMsg.Body;
Regards,
Tom
Answers
Please go the Message Queue and check the body of the message.
In the body you can try to see the kind of message and try to guess how it was serialized.
Regards and good luck.
parm
Thanks for the info. I've created a wrapper DLL in automation for the .NET usage of the new MSMQ classes which allowed me to serialize on XML.
Kind Regards,
Tom