|  | 
 
  
    | RSS Feed - WebSphere MQ Support | RSS Feed - Message Broker Support |  
 
  
	| Storing the XML into string | « View previous topic :: View next topic » |  
  	| 
		
		
		  | Author | Message |  
		  | sapana | 
			  
				|  Posted: Thu Dec 10, 2015 3:02 am    Post subject: |   |  |  
		  | Apprentice
 
 
 Joined: 16 Apr 2007Posts: 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 |  |  
		  |  |  
		  | timber | 
			  
				|  Posted: Thu Dec 10, 2015 3:59 am    Post subject: |   |  |  
		  |  Grand Master
 
 
 Joined: 25 Aug 2015Posts: 1292
 
 
 | 
			  
				| 
  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. 
	| Quote: |  
	| Looks like XMLNSC.CDataField construct can be used while creating XML elements, not while accessing them |  
 Maybe the topic should be updated to make it clearer...
 |  |  
		  | Back to top |  |  
		  |  |  
		  | mgk | 
			  
				|  Posted: Thu Dec 10, 2015 8:40 am    Post subject: |   |  |  
		  |  Padawan
 
 
 Joined: 31 Jul 2003Posts: 1647
 
 
 | 
			  
				| 
   
	| 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 |  |  
		  |  |  
		  | Halloween | 
			  
				|  Posted: Thu Dec 10, 2015 8:59 am    Post subject: |   |  |  
		  | Acolyte
 
 
 Joined: 11 Mar 2015Posts: 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 |  |  
		  |  |  
		  |  |  |  
 
 
  
  	| 
		
		  | 
 
 | 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
 
 |  |  |  |