|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
createElementAsLastChildFromBitstream |
« View previous topic :: View next topic » |
Author |
Message
|
kotagiriaashish |
Posted: Tue Jan 29, 2013 6:11 am Post subject: createElementAsLastChildFromBitstream |
|
|
 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 |
|
 |
lancelotlinc |
Posted: Tue Jan 29, 2013 6:14 am Post subject: |
|
|
 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 |
|
 |
kotagiriaashish |
Posted: Tue Jan 29, 2013 6:20 am Post subject: |
|
|
 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 |
|
 |
lancelotlinc |
Posted: Tue Jan 29, 2013 6:24 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|