Author |
Message
|
Pierre-Yves Lesage |
Posted: Wed Mar 20, 2002 8:55 am Post subject: |
|
|
Novice
Joined: 21 Aug 2001 Posts: 17 Location: London, UK
|
Hi everyone,
I've got an xml message that contains encoded data within two tags. The data is encoded in base64(deflate). (Don't ask me what this means).
Does anyone know of a piece of functionality or ESQL command within WMQI that would decode the data, and encode it back after transformation?
Any help appreciated.
PYL |
|
Back to top |
|
 |
jeeth_m |
Posted: Wed Feb 02, 2005 10:47 am Post subject: |
|
|
Voyager
Joined: 21 Jan 2002 Posts: 93
|
Does any one know about this?
Jeeth |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Feb 02, 2005 10:50 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
I'm reasonably sure that there is no implementation of base64 encoding or decoding built into the Broker product.
That doesn't mean that you can't write or call some implementation. Methods and available tools depend on broker version. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
jeeth_m |
Posted: Wed Feb 02, 2005 12:00 pm Post subject: |
|
|
Voyager
Joined: 21 Jan 2002 Posts: 93
|
You mean custom node/process is the only solution |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Feb 02, 2005 12:21 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
jeeth_m wrote: |
You mean custom node/process is the only solution |
Well.... no.
I mean it depends on the version of Broker that you are using.
If you are using FP4 of Broker 5, you can call out to Java code directly from ESQL.
I wouldn't call that a custom node or a custom process. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
jeeth_m |
Posted: Wed Feb 02, 2005 12:44 pm Post subject: |
|
|
Voyager
Joined: 21 Jan 2002 Posts: 93
|
oh okay... im using 2.1. so hard luck there  |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Feb 02, 2005 12:55 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
jeeth_m wrote: |
oh okay... im using 2.1. |
Yes. In that case, a custom node or process is your only choice. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
rkford11 |
Posted: Wed Feb 02, 2005 2:04 pm Post subject: |
|
|
Partisan
Joined: 06 Jun 2004 Posts: 316
|
jefflowrey wrote: |
call out to Java code directly from ESQL.
|
Jeff,
Can you please provide the link which explains this in detail.
Thanks |
|
Back to top |
|
 |
JT |
Posted: Wed Feb 02, 2005 2:22 pm Post subject: |
|
|
Padawan
Joined: 27 Mar 2003 Posts: 1564 Location: Hartford, CT.
|
|
Back to top |
|
 |
kimbert |
Posted: Thu Feb 03, 2005 5:29 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Why not model the message using a message set? The MRM's XML parser can do this for you automatically. |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Feb 03, 2005 6:17 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
kimbert wrote: |
Why not model the message using a message set? The MRM's XML parser can do this for you automatically. |
The XML Parser can decode base64?
Or merely HANDLE it? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
kimbert |
Posted: Thu Feb 03, 2005 6:50 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Decode. Its on the XML wire format tab, and its controlled by the 'Encoding' property. Options are 'hexBinary' and 'base64' if I remember rightly. |
|
Back to top |
|
 |
|