Author |
Message
|
gowdy |
Posted: Mon Jul 30, 2001 2:36 am Post subject: |
|
|
Apprentice
Joined: 17 Jul 2001 Posts: 29 Location: Bournemouth, UK
|
Hi again
Another stupid newbie question, I am afraid. I have a message layout that I want to receive. However, due to the maximum length of data structure members being 32 characters, and the message layout received being unchangeable, I have had to wrap it within one tag within MQSI. The plan is then to extract the tags I need using an application called within MQWF.
---example layout
<NewMsgLayout>
<OldMsgLayout>
<MoreThan32CharLongFieldButNotNeeded>
</MoreThan32CharLongFieldButNotNeeded>
<RequiredField>
<RequiredField>
</OldMsgLayout>
</NewMsgLayout>
---end of example layout
I was hoping that I would not have to define the tags within <NewMsgLayout> and extract them as I need within a separate application. I tried to define the <OldMsgLayout> as a default data structure and as a variable length string but to no avail.
Any ideas/suggestions would be gratefully appreciated.
Thanks once more
Mark
|
|
Back to top |
|
 |
jmac |
Posted: Mon Jul 30, 2001 9:25 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
Mark:
I don't believe you will be able to do what you are attempting (of course I could be wrong). I think you will need to remove/reformat these tags so that they conform to MQWF requirements IF they are going to be in the ActivityImplInvoke or ProcessTemplateCreateAndStartInstance XML messages.
_________________ John McDonald
RETIRED |
|
Back to top |
|
 |
gowdy |
Posted: Tue Jul 31, 2001 1:39 am Post subject: |
|
|
Apprentice
Joined: 17 Jul 2001 Posts: 29 Location: Bournemouth, UK
|
Hi John
I managed to get round it by detailing the contents of the XML tag as variable length string, and within MQSI, wrapping the tags in [!CDATA[-----]]. Then I have a java application to parse it how I like. Not pretty, but it works.
Cheers
Mark |
|
Back to top |
|
 |
gowdy |
Posted: Thu Aug 02, 2001 12:36 am Post subject: |
|
|
Apprentice
Joined: 17 Jul 2001 Posts: 29 Location: Bournemouth, UK
|
Hi
Having managed to successfully use the method outlined above (using CDATA), I have been checking the message on the queue using the MQSI Test Tool rfhutil.exe.
However, when I examine the contents of the tag I get a curious result.
Input tag before going through MQWF:
<OrigMessage><![CDATA[Layout><GeneralInformation>
Input tag after going through MQWF: <OrigMessage>&lt;IMLayout&gt;&lt;GeneralInformation&gt;&
Any ideas if this is a Workflow issue or the MQSI tool?
Thanks
Mark Gowdy
[ This Message was edited by: gowdy on 2001-08-02 01:36 ]
[ This Message was edited by: gowdy on 2001-08-02 01:40 ] |
|
Back to top |
|
 |
jmac |
Posted: Thu Aug 02, 2001 5:24 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
Mark:
I have in the past had trouble with XML and escaped characters in MQWF. I recently noticed that now any MQWF Message that contains characters "& < >" (at least, there may be more) is enclosed in one of those CDATA blocks.
I suggest you try to talk to the folks at the IBM Lab. If you don't have any other means to contact them you can use their Q&A email address workflow@de.ibm.com
I would appreciate it if you post the results of anything they give you.
Thanks.... GOOD LUCK |
|
Back to top |
|
 |
lunobili |
Posted: Thu Nov 08, 2001 2:43 am Post subject: |
|
|
Novice
Joined: 06 Nov 2001 Posts: 17
|
Can anybody be a little bit more specific about how to wrap the tags in [!CDATA[-----]]with MQSI? I'm trying to stuff some XML message as a string in a WorkFlow DataStructure. I know that the way to do it is to wrap it but I cannot find a way to do that with MQSI.
Thanks in advance for your help,
Luca. |
|
Back to top |
|
 |
|