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 » WebSphere Message Broker (ACE) Support » Invalid Wire format while setting EmailOutput node option

Post new topic  Reply to topic
 Invalid Wire format while setting EmailOutput node option « View previous topic :: View next topic » 
Author Message
Bartez75
PostPosted: Thu Sep 04, 2008 1:51 am    Post subject: Invalid Wire format while setting EmailOutput node option Reply with quote

Voyager

Joined: 26 Oct 2006
Posts: 80
Location: Poland, Wroclaw

I'm trying to use EmailOutput node with settings set in the code.
In the documentation it is said that I have to use EmailOutputHeader just after Root. I'm trying to do this but I got error
Quote:
Invalid Wire format retreived.

I did this:
Code:
MbElement outBody = outRoot.createElementAsLastChild("EmailOutputHeader");


outRoot points to Root in the message tree.
EmailOutputHeader is not a valid wire format. So how to create/use this header as a child of Root?

I probably don't understand the documentation: http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r1m0/index.jsp?topic=/com.ibm.etools.mft.doc/ac37400_.htm

Thanks for any help.
Back to top
View user's profile Send private message
MrSmith
PostPosted: Mon Sep 08, 2008 2:57 am    Post subject: Reply with quote

Master

Joined: 20 Mar 2008
Posts: 215

I read the documention you referenced below and interpreteda that it was aimed at those using ESQL to configure and change the properties associated with the email node, whereas (correct me if i am wrong) but the snippet of code you have given would suggest that you are using it within a custom node class. Are you configuring the email node as a subsequent node to a custom node, as your posting does not potray that. If you could supply a little more information as to what you wnat to achieve and the setup of your flow would be helpful.
Back to top
View user's profile Send private message
Bartez75
PostPosted: Tue Sep 23, 2008 6:38 am    Post subject: Reply with quote

Voyager

Joined: 26 Oct 2006
Posts: 80
Location: Poland, Wroclaw

Hi
I have solved it by:
Code:

outRoot = outAssembly.getMbMessage().getRootElement();
emailOutputHeader = outRoot.createElementAsLastChild(MbElement.TYPE_NAME, "EmailOutputHeader",null);


The error with invalid Wire format was connected with something else but the previous code was wrong . Anyway I made EmailOutput node working in my flow with properties set in the code.
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 » WebSphere Message Broker (ACE) Support » Invalid Wire format while setting EmailOutput node option
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.