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 » CDATA setting

Post new topic  Reply to topic
 CDATA setting « View previous topic :: View next topic » 
Author Message
rajbuddha
PostPosted: Sun May 06, 2012 9:36 pm    Post subject: CDATA setting Reply with quote

Apprentice

Joined: 02 Aug 2011
Posts: 47
Location: chennai

Hi Folks ,

Need your assistance . As per my requirment i need to set CDATA into two different tags , First one is wrapping xml into one tag , which i am doing as mentioned below
-----------------------------------------------------------------------
DECLARE wholeMsgBlob BLOB ASBITSTREAM(OutputRoot.XMLNSC,InputRoot.Properties.Encoding,InputRoot.Properties.CodedCharSetId );
DECLARE wholeMsgChar CHAR CAST(wholeMsgBlob AS CHAR CCSID InputRoot.Properties.CodedCharSetId);

SET soapBodyOutRef.ibm:login.(XMLNSC.CDataField)document1 = wholeMsgChar;
----------------------------------------------------------------------
And this is working as expected , But for the second tag CDATA i need to hardcode some xml content , for this i am following syntax mentioned below

--------
SET soapBodyOutRef.ibm:login.(XMLNSC.CDataField)env = '<YFSEnvironment userId="admin" ProgId="testWS" />' ;
----------

and this giving me the result like
---------
<env>&lt;YFSEnvironment userId="admin" ProgId="testWS" /></env>
-----------
But i am expecting like
---------
<env><![CDATA[YFSEnvironment userId="admin" ProgId="testWS" />]/env>
----------
Please help me with this ...Thanks in advance
_________________
-----------

Raju Buddha

Never Wait for your 2nd Opportunity..!Becoz it may be harder than the 1st One...
Back to top
View user's profile Send private message Send e-mail
kash3338
PostPosted: Mon May 07, 2012 8:00 am    Post subject: Reply with quote

Shaman

Joined: 08 Feb 2009
Posts: 709
Location: Chennai, India

Hope this link helps,

http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r1m0/index.jsp?topic=%2Fcom.ibm.etools.mft.doc%2Fac67245_.htm

Quote:
Unlike Content, occurrences of <,>, &, ", and ' are not translated to their XML character entities ( &lt;, &gt;, and &amp;) when the CDataSection is produced.
Back to top
View user's profile Send private message Send e-mail
kimbert
PostPosted: Mon May 07, 2012 1:02 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
And this is working as expected , But for the second tag CDATA i need to hardcode some xml content , for this i am following syntax mentioned below
Well...if it works in the first part of the message then it should work in the other part too. XMLNSC works the same way on all parts of the the message tree.

My best guess is that you have made a simple typing error somewhere - the best way to find that is to put in a Trace node and look at the contents of the message tree just before the output node.
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 » CDATA setting
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.