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 » Copying CData into XMLNS

Post new topic  Reply to topic
 Copying CData into XMLNS « View previous topic :: View next topic » 
Author Message
rkulkarni
PostPosted: Tue Apr 26, 2005 4:39 am    Post subject: Copying CData into XMLNS Reply with quote

Newbie

Joined: 26 Apr 2005
Posts: 3

I am trying to build a message in the XMLNS domain within a compute node. The input message contains a tag which encloses a valid XMLNS document within a CData section.

Input message -

<?xml version="1.0" encoding="UTF-8" ?>
<soap:Envelope xmlns:trns="http://ws/Service/Transformation/v1r0" xmlns:impl="http://ws/Data/Header/v6" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header />
<soap:Body>
<trns:OutputMessage><![CDATA[ <?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:impl="http://ws/Data/Header/v6" xmlns:xalan="http://xml.apache.org/xslt" xmlns:pbp1="http://ws/Service/PBP1/v1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" soap="http://schemas.xmlsoap.org/soap/envelope/" impl="http://ws/Data/Header/v6" pbp1="http://ws/Service/PBP1/v1" xsi="http://www.w3.org/2001/XMLSchema-instance"><soap:Header></soap:Header><soap:Body><pbp1:Response><pbp1:Name>JSmith</pbp1:Name><pbp1:Address><pbp1:Street>1 Century Way</pbp1:Street><pbp1:City>London</pbp1:City><pbp1:PostalCode>E127GH</pbp1:PostalCode></pbp1:Address></pbp1:Response></soap:Body></soap:Envelope> ]]>
</trns:OutputMessage>
</soap:Body>
</soap:Envelope>


I want to build an output XMLNS message whose body is actually made up of the XML contained within the CData string as above.

At the moment, I am using the following bit of ESQL to populate the XML body-

SET OutputRoot.XMLNS.(XML.AsisElementContent) =
InputRoot.MRM.soap.Body.trns.OutputMessage.(XML.CDataSection);

The namespaces are declared properly in the same ESQL. However the compute node produces an output message with a null XMLNS element i.e. OutputRoot.XMLNS is empty.

Any ideas on how to copy a CData string into an XMLNS structure?

Regards,
Ragh
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Apr 26, 2005 4:45 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Have you considered using the search button?

Have you considered that you need to parse the XML in the CDATA section?
_________________
I am *not* the model of the modern major general.
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 » Copying CData into XMLNS
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.