Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Problems Accessing WebSphere MQ in BizTalk 2006 › Re: Problems Accessing WebSphere MQ in BizTalk 2006
Thanx for the reply,
I now understand that it has to do with the way I write the message to the queue. I make an XMLDocument and then use the queue objects WriteString(xmldoc.InnerXml) method to write my xml to the queue.
I tried the same thing using the MSMQ, it didn't work. But when I used its send method to pass on the entire XmlDocument object it worked alright.
like MessageQueue.Send(XmlDoc). The send method takes an argument of type of 'object', It worked alright without any errors.
But when I try passing xmldocument using the WebSphere MQ object.
MQMessage.WriteObject(xmldoc) or even tried explictly by casting it MQMessage.WriteObject((object)xmldoc), it gives me this error.
Type 'System.Xml.XmlDocument' in Assembly 'System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' is not marked as serializable.
I just cant understand why writting a same XmlDocument object to an MSMQ send method didn't gave any error, while this is giving it.
Both take object type as their argument.
Any help, would be really appreciated.
Regards,
Sajid.