|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
WMB 7 Parsing DataObjects in ESQL? |
« View previous topic :: View next topic » |
Author |
Message
|
marko.pitkanen |
Posted: Fri Sep 14, 2012 3:40 am Post subject: WMB 7 Parsing DataObjects in ESQL? |
|
|
 Chevalier
Joined: 23 Jul 2008 Posts: 440 Location: Jamsa, Finland
|
Hi,
Have anyone managed to parse DataObjects from bytestream with ESQL?
If I try following:
1) Get iDoc from SAP with generic SapGenericIDocObject
2) SET OutputRoot.BLOB.BLOB = CAST(InputBody.*:SapGenericIDocObject.*:IDocStreamData AS BLOB); and forward message to MQ
3) Get Message with MQInput (BLOB parser set)
4) Parse bytestream with following ESQL
Code: |
CREATE LASTCHILD OF OutputRoot DOMAIN 'DataObject' parse(InputRoot.BLOB.BLOB ENCODING InputRoot.Properties.Encoding CCSID InputRoot.Properties.CodedCharSetId SET 'x' TYPE 'x' FORMAT 'SAP ALE IDoc' OPTIONS ValidateImmediate);
|
I get weird XML parsing errors.
If I set MQInput -node to parse message with same settings it parses correctly without any problems.
Ok, I saw from InfoCenter mentions that If Dataobject will be directed somewhere else that adapters It will use XMLNSC for serialisation. Perhaps the same is true for parsing (except MQInput that seems to understand IDoc bytestream directly)?
--
Marko |
|
Back to top |
|
 |
NealM |
Posted: Fri Sep 14, 2012 8:45 am Post subject: |
|
|
 Master
Joined: 22 Feb 2011 Posts: 230 Location: NC or Utah (depends)
|
Marko, I haven't tried it myself, but what if you set FORMAT 'DataObject' in your statement. FORMAT is usually what tells the Broker which parser to use. |
|
Back to top |
|
 |
marko.pitkanen |
Posted: Sun Sep 16, 2012 11:42 pm Post subject: |
|
|
 Chevalier
Joined: 23 Jul 2008 Posts: 440 Location: Jamsa, Finland
|
Thanks NealM,
I tested that and got the same XML -parsing errors. But it was expected result, because as far as I know FORMAT is used to select wire-format not the parser.
--
Marko |
|
Back to top |
|
 |
NealM |
Posted: Mon Sep 17, 2012 2:14 am Post subject: |
|
|
 Master
Joined: 22 Feb 2011 Posts: 230 Location: NC or Utah (depends)
|
Sorry, my bad. I'm curious though:
1. If you just unBLOB the input string to Char, is it truly an IDOC (did the original CAST to BLOB do just that or perhaps turn it into XML in serializing it)?
2. What would you get if you specified an XMLNSC domain on the MQinput node?
3. Does a ResetContentDescriptor work on the BLOB or also give you weird parsing results? |
|
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
|
|
|
|