ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ API Support » empty message

Post new topic  Reply to topic
 empty message « View previous topic :: View next topic » 
Author Message
rbreault
PostPosted: Tue Jul 24, 2007 9:19 am    Post subject: empty message Reply with quote

Novice

Joined: 23 Jan 2007
Posts: 21

So I finally get MQ writing to a queue with .net and the payload / message is empty.

I am having a hard time figureing out what I need to add at this point


msgData.ReadBytes(xmlDoc.ReadNode);

I grab this from an xml.element in .net

with the following


System.Xml.XmlElement xe = payload.content[0].Any;
XmlDocument xmlDoc = xe.OwnerDocument;


I have tried strings and other such things. it just puts a blank message on MQ
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Jul 24, 2007 10:34 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You need to marshal the XML document into a string. Then you need to WRITE that string into the MQ Message.

Then you can send the message.

Another program that reads the message will then read the string from the message, and can then unmarshal the string into an XML document.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » empty message
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.