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 » Transformation Question

Post new topic  Reply to topic
 Transformation Question « View previous topic :: View next topic » 
Author Message
pfaulkner
PostPosted: Mon Nov 04, 2002 3:04 pm    Post subject: Transformation Question Reply with quote

Master

Joined: 18 Mar 2002
Posts: 241
Location: Colorado, USA

I am transforming an XML msg to COBOL and then on the reply back from COBOL to XML. Part of my message data contains the length of the message.

Obviously when the message is transformed the length changes and therefore I need to modify the length field in my message to accomodate this.

For the outbound msg, I used:
length(BITSTREAM(InputBody));

And this worked fine.

I tried this for the reply message which is in CWF/XML but it fails with:
Error BIP5401E: XML Worker: An internal error occurred .

How can I find the length of the xml message that would be written to the output queue (including any XML version and timestamp tags).

thanks
Back to top
View user's profile Send private message AIM Address
Cliff
PostPosted: Wed Nov 06, 2002 7:59 am    Post subject: Reply with quote

Centurion

Joined: 27 Jun 2001
Posts: 145
Location: Wiltshire

I know of no way to determine the length of a bitstream you haven't yet created. However, given that the message length you are looking for is returned in the MQMD of the MQGETting program, why bother to include the message length in the message payload?

Cheers -

Cliff
Back to top
View user's profile Send private message Send e-mail
pfaulkner
PostPosted: Wed Nov 06, 2002 8:05 am    Post subject: Reply with quote

Master

Joined: 18 Mar 2002
Posts: 241
Location: Colorado, USA

Finally got it to work, there must have been a problem with my XML message because the same command works now. Oh I need to pass message length because my msgs have 2 parts. A variable length header and data, the msg length I was referring to was just for the data part of the msg and is stored in the header part. I parse both parts seperately and then put them back together....
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

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