WebSphere Message Broker, Version 8.0.0.7 Operating Systems: AIX, HP-Itanium, Linux, Solaris, Windows, z/OS

See information about the latest product version

Creating a message with a .NETCompute node

Write appropriate code in the UserCode region of a CreateNode class.

  1. In Microsoft Visual Studio, add an instance of the Class to create a Message Broker message to your project.
  2. Add the appropriate code to the UserCode region of the class that you created. The following example creates a simple message:
    outputRoot.CreateLastChildUsingNewParser(NBParsers.XMLNSC.ParserName);
    outputRoot["XMLNSC"].CreateFirstChild(null, "Message"); 
    outputRoot["XMLNSC"]["Message"].CreateFirstChild(null, "Element").SetValue("Some Data");  
  3. Build your project, and then associate the .dll file with a .NETCompute node. If the example code is associated with a .NETCompute node between an MQInput node and an MQInput node, the following message is created:
    <Message><Element>Some Data</Element></Message>
Notices | Trademarks | Downloads | Library | Support | Feedback

Copyright IBM Corporation 1999, 2016Copyright IBM Corporation 1999, 2016.

        
        Last updated:
        
        Last updated: 2016-05-23 14:47:58


Task topicTask topic | Version 8.0.0.7 | bc34209_