This content has been marked as final. Show 4 replies
Don't understand the question?
When you import the DTD to define a common or application data type, all you are doing is defining the structure of the message. The mapping screen just provides you a mechanism for mapping from one structure to another, and therefore it does not care if you are using XML database objects or anything else.
What do you mean by serialize back to teh XML string?
Thanks Stuart for your reply. What I'm trying to do is to convert the xml message from the common view object to JMS Text Message. I declared the application data type as AQ$JMS_TEXT_MESSAGE and I try to map the common data type which is I imported from dtd to the application JMS type. During the mapping I need to serialize the common data type object back to xml string, so I can copy it to text_vc field defined in JMS Text Message (String type).
Or do you know any other alternative to convert from RAW XML payload type to JMS payload type in iStudio?
I'm not sure if I understand you correctly: You want to give over the former xml message which was converted to common view into a big string field of JMS text message?
That is possible. You have to create a new application data type at your target application with the corresponding dtd. Then you have to replace the type of the text_vc field into your created application data type. Then you map the common view fields normally to fields of text_vc field. At runtime the adapter automaticall will create xml for your field.
Colette, thanks for your suggestion. It works.