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 » WMB 7 Parsing DataObjects in ESQL?

Post new topic  Reply to topic
 WMB 7 Parsing DataObjects in ESQL? « View previous topic :: View next topic » 
Author Message
marko.pitkanen
PostPosted: Fri Sep 14, 2012 3:40 am    Post subject: WMB 7 Parsing DataObjects in ESQL? Reply with quote

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
View user's profile Send private message Visit poster's website
NealM
PostPosted: Fri Sep 14, 2012 8:45 am    Post subject: Reply with quote

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
View user's profile Send private message
marko.pitkanen
PostPosted: Sun Sep 16, 2012 11:42 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
NealM
PostPosted: Mon Sep 17, 2012 2:14 am    Post subject: Reply with quote

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
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 » WMB 7 Parsing DataObjects in ESQL?
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.