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 » Storing the XML into string

Post new topic  Reply to topic Goto page Previous  1, 2
 Storing the XML into string « View previous topic :: View next topic » 
Author Message
sapana
PostPosted: Thu Dec 10, 2015 3:02 am    Post subject: Reply with quote

Apprentice

Joined: 16 Apr 2007
Posts: 33
Location: Pune

mgk wrote:


His code is doing exactly what it looks like


ouch! Her code is..


maurito wrote:


Ok, the code is good. I missed that example, but would it not be easier and more understandable to address the CDATA using something like
Code:

InputRoot.SOAP.Body.ns:root.(XMLNSC.CDataField)Field1 ;



Looks like XMLNSC.CDataField construct can be used while creating XML elements, not while accessing them -
http://www-01.ibm.com/support/knowledgecenter/SSKM8N_8.0.0/com.ibm.etools.mft.doc/ac67193_.htm


If whitespace characters are not a problem, direct access to InputRoot.SOAP.Body.ns:root.Field1 would do.
Back to top
View user's profile Send private message
timber
PostPosted: Thu Dec 10, 2015 3:59 am    Post subject: Reply with quote

Grand Master

Joined: 25 Aug 2015
Posts: 1292

Quote:
Looks like XMLNSC.CDataField construct can be used while creating XML elements, not while accessing them
That not correct, although I can see how the Knowledge Center topic could be read that way. In fact, XMLNSC.CDataField can be used for querying as well as creating elements.

Maybe the topic should be updated to make it clearer...
Back to top
View user's profile Send private message
mgk
PostPosted: Thu Dec 10, 2015 8:40 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

Quote:
ouch! Her code is..


Sorry - will use a non gender-specific pronoun next time!

Timber is correct - you can use the fieldtypes whilst querying or creating. However, when querying, you have to get an exact match for the type or you will not get a match and that's what the docs are trying to say...

Kind regards,
_________________
MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
Back to top
View user's profile Send private message
Halloween
PostPosted: Thu Dec 10, 2015 8:59 am    Post subject: Reply with quote

Acolyte

Joined: 11 Mar 2015
Posts: 60

Thank you guys.

It turned out i had to make the pass through and there was no database interaction for that interface.

It was a passthru and i used compute node to parse the string into XML and posting it to the queue.

Also, initially i was looking for to get this thing done in java compute node using java.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Storing the XML into string
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.