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

Post new topic  Reply to topic
 Reg CDATA « View previous topic :: View next topic » 
Author Message
sambati
PostPosted: Wed Sep 16, 2009 5:51 am    Post subject: Reg CDATA Reply with quote

Novice

Joined: 14 Nov 2006
Posts: 19

Hi,


This is ambati. I am getting xml input. I need to create a soap request and has to copy whole xml as a string to an element. I have done till this.

I need to pass whole xml as CDATA. Could you any one suggest me on CDATA.

right now i am sending whole xml as follows.

SET soapenv.env:Body.ser:CreateServiceRequest.ser:accord = InputRoot.XML;

Suggest me how can i keep InputRoot.XML; in <!CDATA
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Wed Sep 16, 2009 5:58 am    Post subject: Re: Reg CDATA Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

sambati wrote:
has to copy whole xml as a string to an element. I have done till this.


Why? What's the point?

sambati wrote:
I need to pass whole xml as CDATA.


Why? What's the point?

sambati wrote:
right now i am sending whole xml as follows.

SET soapenv.env:Body.ser:CreateServiceRequest.ser:accord = InputRoot.XML;


Which doesn't do what you initially said - put the input XML into a single element, it copies the input under the accord element.

sambati wrote:
Suggest me how can i keep InputRoot.XML; in <!CDATA


By coding a CDATA section - see the WMB infocentre for full details and syntax.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
sambati
PostPosted: Wed Sep 16, 2009 6:20 am    Post subject: Reply with quote

Novice

Joined: 14 Nov 2006
Posts: 19

I have created the request for webservice call

<NS1:Envelope xmlns:NS1="http://schemas.xmlsoap.org/soap/envelope/"

xmlns:NS2="http://nksraghavan.india.aalayance.com:9014/teamworks/webservices/ServiceRequestWS_v2.tws">
<NS1:Header/>
<NS1:Body>
<NS2:CreateServiceRequest>
<NS2:accord>
<InsuranceSvcRq>
<PolicyInqRq>
<RqUID></RqUID>
<TransactionRequestDt>2009-08-27</TransactionRequestDt>
<CurCd></CurCd>
<Requestor></Requestor>

</InsuranceSvcRq>
</NS2:accord>
</NS2:CreateServiceRequest>
</NS1:Body>
</NS1:Envelope>


But i need the Request as below.

<NS1:Envelope xmlns:NS1="http://schemas.xmlsoap.org/soap/envelope/"

xmlns:NS2="http://nksraghavan.india.aalayance.com:9014/teamworks/webservices/ServiceRequestWS_v2.tws">
<NS1:Header/>
<NS1:Body>
<NS2:CreateServiceRequest>
<NS2:accord>
<![CDATA[<InsuranceSvcRq>
<PolicyInqRq>
<RqUID></RqUID>
<TransactionRequestDt>2009-08-27</TransactionRequestDt>
<CurCd></CurCd>
<Requestor></Requestor>

</InsuranceSvcRq>]]>
</NS2:accord>
</NS2:CreateServiceRequest>
</NS1:Body>
</NS1:Envelope>


I need to add the CDATA to created request. I didnt find in infocentre. Please guide me on this.
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Wed Sep 16, 2009 6:31 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

This question is asked and answered about every two or three weeks.

Happy Searching.
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed Sep 16, 2009 6:40 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
right now i am sending whole xml as follows.

SET soapenv.env:Body.ser:CreateServiceRequest.ser:accord = InputRoot.XML;
That was a typo, I assume. You surely would not be silly enough to use the XML domain in an environment where SOAP messages ( which have namespaces ) are being processed!
Back to top
View user's profile Send private message
sambati
PostPosted: Wed Sep 16, 2009 6:41 am    Post subject: Reply with quote

Novice

Joined: 14 Nov 2006
Posts: 19

Please provide me if you have the solution for my problem.

I couldn't get the solution for last one hour.

Regards,
Ambati.
Back to top
View user's profile Send private message Send e-mail
gregop
PostPosted: Wed Sep 16, 2009 6:52 am    Post subject: Reply with quote

Voyager

Joined: 24 Nov 2006
Posts: 81

Searching for CDATA on info centre provdes first entry of:

http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r1m0/index.jsp?topic=/com.ibm.etools.mft.doc/ac67174_.htm
Back to top
View user's profile Send private message
sambati
PostPosted: Wed Sep 16, 2009 6:54 am    Post subject: Reply with quote

Novice

Joined: 14 Nov 2006
Posts: 19

Hi vitor
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://nksraghavan.india.aalayance.com:9014/teamworks/webservices/ServiceRequestWS_v2.tws">
<soapenv:Header/>
<soapenv:Body>
<ser:CreateServiceRequest>
<ser:accord>?</ser:accord>
</ser:CreateServiceRequest>
</soapenv:Body>
</soapenv:Envelope>

I am pushing whole xml into single element 'accord' by using this
SET soapenv.env:Body.ser:CreateServiceRequest.ser:accord = InputRoot.XML;

That xml i need to keep in <![CDATA

<ser:accord><![CDATA ? ]]> </ser:accord>

Thanks,
ambati
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Wed Sep 16, 2009 6:58 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

sambati wrote:
I am pushing whole xml into single element 'accord' by using this
SET soapenv.env:Body.ser:CreateServiceRequest.ser:accord = InputRoot.XML;


- you said you were putting it as a single element in your original post; that statement copies the tree;
- as my most worthy associate points out, why are you using InputRoot.XML? For anything?
- this still doesn't explain why you want or need the document in a CDATA section. Or why you find the InfoCentre so valueless. And the forum search facility valueless.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
sivareddypv
PostPosted: Wed Sep 16, 2009 4:16 pm    Post subject: Reply with quote

Newbie

Joined: 11 Aug 2005
Posts: 4
Location: Australia

Try this
SET soapenv.env:Body.ser:CreateServiceRequest.ser:accord.(XML.CDataSection) = InputRoot.XML;
_________________
sivareddy
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
kimbert
PostPosted: Thu Sep 17, 2009 12:16 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

sivareddypv: That advice is wrong. Please be accurate with your contributions in future.
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 » Reg CDATA
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.