Two things.
1) The MQMessage chunk of code does not even use xmlDoc. I assume you meant to extract the doc text and send IT on the MQ.
2) Does the MQMessage chunk of code come right after the XML validation code? If so, you already have declared and set xmlDoc, so you do not need to do so again. You should be able to just do:
MQMessage xmlPayload = new MQMessage();
... use xmlDoc already declared...
xmlPayload.WriteString(xml
And as to the other two errors, they are saying that MQMessage.WriteString needs a string parameter. You are trying to write the MQ to itself in the code you show here. As I said in (1), I assume you want to extract the XML text and send it to the MQ.
Main Topics
Browse All Topics





by: traxionPosted on 2007-07-19 at 14:05:15ID: 19526130
Try changing xmlDoc in the second section to objxmlDoc and see what happens.