|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Encoding a message |
« View previous topic :: View next topic » |
Author |
Message
|
Yash |
Posted: Mon Nov 04, 2002 4:13 am Post subject: Encoding a message |
|
|
Novice
Joined: 26 Sep 2002 Posts: 24
|
Hai everyone,
I have a problem here. I have to send a Base 64 encoded message to peoplesoft application. The input message I am getting is having MQRFH2 header format and the output message has to be base 64 encoded message. The format of output message is as below.
<?xml version="1.0"?>
<request version="1.1">
<from node="HCM_MQSRVR"/>
<to node="PSFT_EP"/>
<operations namespace="PublishSubscribe" interface="PublishSubscribeSystem">
<invoke member="Subscribe">
<variable type="object" interface="Publication">
<publication>
<publishingnode>PSFT_EP</publishingnode>
<channel>HNA_REQ_PUSH</channel>
<publicationid/>
<subject>HNA_REQ_PUSH</subject>
<class>PSAPMSG</class>
<originatingnode>PSFT_EP</originatingnode>
<publisher>SARNALAK</publisher>
<publicationprocess>PSAMD</publicationprocess>
<publishtimestamp>2002-11-01T17:05:46.638959-0500</publishtimestamp>
<status>4</status>
<defaultdataversion>VERSION_1</defaultdataversion>
<dataversions>
<publicationdataversion>
<version>VERSION_1</version>
<data encoding="base64(deflate)" encodedlength="1672(1252)" length="5140">eJzVWEtvGzcQ/iuGLzmlKwkJggLyBhSXWrHeXW5Irhz1QhipUQRw0yIyivbfd2af5JCyXfRUnTjf8DVPfqvtx79+e7z68+H7+evv327erH9YvfmYbw8Nc1p8cm1nDvl2//Xh8Rf79x8P53yL6KHQV18e78/nm2t9nW93nZGNMMZ1jbRXTzDv5pofmL7OhumySIDGMtsZojioqkhrcEkxbV4wKxBUWpayiWd2wlil43NFY4UWRbwR41x1jZVNGetk41qtONq3r0qyI++0Fg0/OU7PykZHDVevwEG+y1B2zU6Pi5qu3ol+2Sd7QsdHuGyOTlpRx0ZJi6A7NoUmGoQcZ5ZVqozX7bqTSPgI5otS6VOsweg6tXe1YKbTgmjrfeKMVksuLthjWsFt7LcWwP6kVnNnVRWtfLXSxWrwI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PoqXsaUF1Ay/q+/AXMMfQj47X1FfxvS/p8ts+D7sPdxIIefiNMr7AHzZyJ6YRmTr8TeuQSiX4rLXzLPMqlcNCVUlwd4bAqz3BMomxrWRqhPq7BL+hLlVUPnIRglV1gHFPEY1nCGJ80UK2BT2UyysuAPv38A8MHSkA==</data>
</publicationdataversion>
</dataversions>
</publication>
</variable>
</invoke>
</operations>
</request>
Can anybody please help me with this problem.
Thanks, _________________ Yash |
|
Back to top |
|
 |
lbrett |
Posted: Thu Nov 07, 2002 10:48 am Post subject: |
|
|
Novice
Joined: 24 Jan 2002 Posts: 20
|
You need to write a custom node. I have done this before to handle messages from peoplesoft. The base64 algorithm is not that difficult and i am sure there are existing programs out there for it. |
|
Back to top |
|
 |
Yash |
Posted: Thu Nov 07, 2002 12:15 pm Post subject: |
|
|
Novice
Joined: 26 Sep 2002 Posts: 24
|
Thanks lbrett,
Can you help me how to do that and can you give me more information how you have done it.
Thanks, _________________ Yash |
|
Back to top |
|
 |
lbrett |
Posted: Fri Nov 08, 2002 5:19 am Post subject: |
|
|
Novice
Joined: 24 Jan 2002 Posts: 20
|
1. Determine what the base64 algorithm is. You can do this by searching on the web for base64 to determine what it means to encode and decode in base64.
2. Implement the base64 algorithm. My suggestion is that you build a program that can take in a base64 string and decode it (as well as do base64 encoding), prior to using it in MQSI.
3. Develop plugin node. Use the programming guide documentation to learn how to build a custom node in MQSI. Basically the MQSI node functions will be a wrapper around your base64 code from step 2.
If you have any specific questions about base64 or MQSI plugin, please post and I will help you as much as possible. Time permitting of course.
Good Luck! |
|
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
|
|
|
|