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 » XML to TDS

Post new topic  Reply to topic
 XML to TDS « View previous topic :: View next topic » 
Author Message
yonny
PostPosted: Thu Dec 16, 2004 12:59 pm    Post subject: XML to TDS Reply with quote

Apprentice

Joined: 08 Jul 2001
Posts: 49
Location: Santo Domingo

Hi, I want to know if there is any document/tutorial to learn a simple way to transform this:

<?xml version="1.0"?>
<MESSAGE TYPE="RQ">
<SERVICESOURCE>PSOFT</SERVICESOURCE>
<FUNCTION>PAY</FUNCTION>
<ACCOUNTFROM>9999999</ACCOUNTFROM>
<ACCOUNTTYPEFROM>CHECKING</ACCOUNTTYPEFROM>
<AMOUNTFROM>2500</AMOUNTFROM>
<CURRENCYFROM>DOP</CURRENCYFROM>
<DESCRIPTIONFROM>NULL</DESCRIPTIONFROM>
<ACCOUNTTO>NULL</ACCOUNTTO>
<ACCOUNTTYPETO>NULL</ACCOUNTTYPETO>
<AMOUNTTO>NULL</AMOUNTTO>
<CURRENCYTO>NULL</CURRENCYTO>
<DESCRIPTIONTO>NULL</DESCRIPTIONTO>
<TIPOBENEF>1</TIPOBENEF>
<REFERENCE>999</REFERENCE>
<DATE>20041214</DATE>
<TIME>120000</TIME>
</MESSAGE>

Into something like this:
RQ|PAY|9999999|CHECKING|2500|DOP|1|999|20041214|120000|

Please notice:
- when an XML element is "empty" the "NULL" string is used.
- the delimiter used in the TDS message is the pipe symbol '|'.

Right now I am parsing the XML using a message set, but I am stuck with the output message: should I use ESQL or mappings. and how?

Thank you for your help.

Yonny
Back to top
View user's profile Send private message Send e-mail AIM Address
vennela
PostPosted: Thu Dec 16, 2004 2:14 pm    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

http://www.redbooks.ibm.com/abstracts/sg246579.html?Open
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kirani
PostPosted: Thu Dec 16, 2004 11:23 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

You can do this either way. Please take a look at the link on the top of this page, you will find some very good redbooks and WBIMB manuals.
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
yonny
PostPosted: Sun Dec 19, 2004 4:25 pm    Post subject: Reply with quote

Apprentice

Joined: 08 Jul 2001
Posts: 49
Location: Santo Domingo

Thank you Venella and Kirani, I downloaded the redbooks and manuals suggested by you, but did not advance too much. I am new to the Broker Toolkit software and have not worked with the ESQL language (although I had some experience with other programming languages).
Could be possible for you to point me to a more specific example, like a simple ESQL code?
Just to get me started. Thanks in advance.
Back to top
View user's profile Send private message Send e-mail AIM Address
jefflowrey
PostPosted: Sun Dec 19, 2004 4:36 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Maybe you should consider paying someone for some training.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
JT
PostPosted: Mon Dec 20, 2004 7:23 am    Post subject: Reply with quote

Padawan

Joined: 27 Mar 2003
Posts: 1564
Location: Hartford, CT.

Quote:
Could be possible for you to point me to a more specific example, like a simple ESQL code?

Examples are available throughout the Help facility. Click here for ESQL details.
Back to top
View user's profile Send private message
yonny
PostPosted: Mon Dec 27, 2004 12:07 pm    Post subject: Reply with quote

Apprentice

Joined: 08 Jul 2001
Posts: 49
Location: Santo Domingo

Quote:
Maybe you should consider paying someone for some training.

Capitalism eh !
Problem solved, thanks.
Back to top
View user's profile Send private message Send e-mail AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » XML to TDS
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.