|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Transformation Question |
« View previous topic :: View next topic » |
Author |
Message
|
pfaulkner |
Posted: Mon Nov 04, 2002 3:04 pm Post subject: Transformation Question |
|
|
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 |
|
 |
Cliff |
Posted: Wed Nov 06, 2002 7:59 am Post subject: |
|
|
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 |
|
 |
pfaulkner |
Posted: Wed Nov 06, 2002 8:05 am Post subject: |
|
|
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 |
|
 |
|
|
 |
|
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
|
|
|
|