ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » MRM and a XML message with a CData section

Post new topic  Reply to topic
 MRM and a XML message with a CData section « View previous topic :: View next topic » 
Author Message
mqbrkrs
PostPosted: Mon Oct 16, 2006 8:53 am    Post subject: MRM and a XML message with a CData section Reply with quote

Newbie

Joined: 16 Oct 2006
Posts: 3
Location: The Netherlands

Hi,

I want to use the MRM to generate XML messages with a CData section.
I have read many topics about the subject, but there is no real answer to if it can be done or not.


Using:

SET OutputRoot.XML.SomeField.(XML.CDataSection) = .....

does the trick if you use the XML parser.


But what if you want to use the MRM parser?

Thanks,
Back to top
View user's profile Send private message
madi
PostPosted: Mon Oct 16, 2006 11:11 am    Post subject: Reply with quote

Chevalier

Joined: 17 Jan 2006
Posts: 475

i guess you would have to define an element in your msg def file to contain CDATA and then assign to it

just a thought

--madi
Back to top
View user's profile Send private message
kimbert
PostPosted: Mon Oct 16, 2006 12:32 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Sorry - it's a known requirement, but you cannot do this today.
Depending on your requirements, you might want to encode it as base64 instead of using a CDATA section. The MRM domain will do the base64 encoding for you as long as you define the field as xs:binary and set the Encoding property to base64. You will have to supply binary data in the message tree, which will probably mean a CAST from CHARACTER to BLOB before you write.
I suppose I should ask - why is it important to use the MRM domain to write this message?
Back to top
View user's profile Send private message
mqbrkrs
PostPosted: Mon Oct 16, 2006 1:51 pm    Post subject: Reply with quote

Newbie

Joined: 16 Oct 2006
Posts: 3
Location: The Netherlands

A business partner writes the XML schemas for the SOAP messages we use to communicate.
To make sure that the messages are correct I import the messages in the toolkit and use the created messageset to validate and translate the outgoing messages. Works fine but now they want a message containing
a CData section.

I tried a couple of options, but failed.

And now that you confirm that it doesn't work, I will code the missing CData part in ESQL.

Thanks for your quick response.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Oct 16, 2006 3:41 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Hey ... kimbert...

What happens if you insert the literal value '<![CDATA['||<data>||']]]>'... into an MRM-XML element?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
mqbrkrs
PostPosted: Mon Oct 16, 2006 10:27 pm    Post subject: Reply with quote

Newbie

Joined: 16 Oct 2006
Posts: 3
Location: The Netherlands

It will be parsed as '&lt........&gt' and that is not what you want in the XML message.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » MRM and a XML message with a CData section
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.