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 » createElementAsLastChildFromBitstream

Post new topic  Reply to topic
 createElementAsLastChildFromBitstream « View previous topic :: View next topic » 
Author Message
kotagiriaashish
PostPosted: Tue Jan 29, 2013 6:11 am    Post subject: createElementAsLastChildFromBitstream Reply with quote

Disciple

Joined: 06 Aug 2011
Posts: 165

I have a flow in which i receive a zip file from MQ, so I wrote code for unzipping and im able to successfully unzip & write them to files.

I intend to propagate each unzipped entery, so im creating this tree

Code:
outMessage.getRootElement().getLastChild().createElementAsLastChildFromBitstream(Stringbuffer.toString().getBytes(),"BLOB", null, null, null, 0, 0, 0);


and i get
Code:
<com.ibm.broker.plugin.MbRecoverableException class:JNI method:ImbMessageGroup::createParser source:BIPmsgs key:2310 >

& Could not create parser


as exceptions am i passing the parser name wrong??
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Tue Jan 29, 2013 6:14 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Quote:
public MbElement createElementAsLastChildFromBitstream(byte[] bitstream,
String parserName,
String messageType,
String messageSet,
String messageFormat,
int encoding,
int ccsid,
int options) throws MbException


The InfoCentre provides a wealth of information for you to read and learn from.

Check your second argument against the documentation.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
kotagiriaashish
PostPosted: Tue Jan 29, 2013 6:20 am    Post subject: Reply with quote

Disciple

Joined: 06 Aug 2011
Posts: 165

lancelotlinc wrote:
Quote:
public MbElement createElementAsLastChildFromBitstream(byte[] bitstream,
String parserName,
String messageType,
String messageSet,
String messageFormat,
int encoding,
int ccsid,
int options) throws MbException


The InfoCentre provides a wealth of information for you to read and learn from.

Check your second argument against the documentation.


Thanks!! was just browsing through this....

Code:

 MbElement outMsgRootEl = outMessage.getRootElement();
 
 String parserName = MbBLOB.PARSER_NAME;
 String messageType = "";
 String messageSet = "";
 String messageFormat = "";
 int encoding = 0;
 int ccsid = 0;
 int options = 0;
 outMsgRootEl.createElementAsLastChildFromBitstream(responseBodyXmlData,
   parserName, messageType, messageSet, messageFormat, encoding, ccsid,
   options);
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Tue Jan 29, 2013 6:24 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Your welcome.

Google provides a generous search engine from which you can find links like this one:

http://publib.boulder.ibm.com/infocenter/wmbhelp/v8r0m0/index.jsp?topic=%2Fcom.ibm.etools.mft.doc%2Fac30350_.htm
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » createElementAsLastChildFromBitstream
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.