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 » BIP5288 - message being parsed by the MRM parser is larger

Post new topic  Reply to topic
 BIP5288 - message being parsed by the MRM parser is larger « View previous topic :: View next topic » 
Author Message
kudlanka
PostPosted: Tue Mar 09, 2010 12:43 am    Post subject: BIP5288 - message being parsed by the MRM parser is larger Reply with quote

Novice

Joined: 19 Mar 2009
Posts: 20
Location: Prague

Hello,

is it possible to get expected length of message from messageset?

We have flow which converts xml message to mrm (messageset is generated from cobol copybook) and via http request calls backend. Answer from backend is 16000 bytes long (don't ask me why, we can not change it) and we have to convert it back to xml format.

Correct answer (real data) has only 681. We have to get only this length and send it to mapping node (mrm -> xml) if not we get error 5288.

Now we have the correct length as constant - which it is not good. Is there any better way how to solve this? I cannot find anything in documentation.

Kudlanka
Back to top
View user's profile Send private message
kimbert
PostPosted: Tue Mar 09, 2010 1:07 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

You could add a final field with Length Units set to 'End of bit stream', as described here: http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r1m0/topic/com.ibm.etools.mft.doc/ad15410_.htm
Back to top
View user's profile Send private message
Herbert
PostPosted: Tue Mar 09, 2010 1:10 am    Post subject: Re: BIP5288 - message being parsed by the MRM parser is larg Reply with quote

Centurion

Joined: 05 Dec 2006
Posts: 146
Location: Leersum, The Netherlands

kudlanka wrote:
is it possible to get expected length of message from messageset?

We have flow which converts xml message to mrm (messageset is generated from cobol copybook) and via http request calls backend. Answer from backend is 16000 bytes long (don't ask me why, we can not change it) and we have to convert it back to xml format.

Correct answer (real data) has only 681. We have to get only this length and send it to mapping node (mrm -> xml) if not we get error 5288.

Now we have the correct length as constant - which it is not good. Is there any better way how to solve this? I cannot find anything in documentation.

AFAIK this is not possible ( wait for mqjeff, yesterday he did point me to a nice option about MRM-CWF I did not know )

Is your input padded with spaces? Then maybe the solution could be to make the last field variable in lenght. Only the last field in a message like this can be variable in lenght. This means you must adjust the message set after every time you import the cobol copy book.

Update: Only Edit possible? No delete? The answer of Kimbert is more complete (with a nice link) When I start writing my answer the message of Kimbert was not yet there.
Back to top
View user's profile Send private message Visit poster's website
kudlanka
PostPosted: Fri Mar 12, 2010 5:43 am    Post subject: Reply with quote

Novice

Joined: 19 Mar 2009
Posts: 20
Location: Prague

Thanks for reply.

End of bit stream works, but now I am getting exception - wrong char x'0' in the stream (or similar - I don't have original erro message)

I hope I will handle it.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Fri Mar 12, 2010 6:02 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

Null padding possibly?
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
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 » BIP5288 - message being parsed by the MRM parser is larger
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.