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 » Data Insert Node, Name Value Pairs

Post new topic  Reply to topic
 Data Insert Node, Name Value Pairs « View previous topic :: View next topic » 
Author Message
neilgc
PostPosted: Tue Jun 19, 2007 8:41 am    Post subject: Data Insert Node, Name Value Pairs Reply with quote

Novice

Joined: 03 Jul 2002
Posts: 20
Location: London

We have a requirement to upload data from an XML formatted message to an Oracle database and am trying to use the compute node, this works well for simple 1 to 1 mappings but am having some trouble with some "name-value pairs" i.e.

<ClientSpecificPairs>
<ClientSpecificPair name="UserID" value="bob"/>
<ClientSpecificPair name="OriginalQuery" value="blackadder"/>
</ClientSpecificPairs>

If the name of the client specific pair is "UserID" the name, and the value need to end up in a database field called UserID

If the name of the client specif pair is "OriginalQuery" the name and the value need to end up in a database field called Query.

Note that there is other XML outside of the client specific pairs and that this is just one of many records i.e.

<xml>
<record 1>
<Field 1> Test field 1a</Field 1>
<ClientSpecificPairs>
<ClientSpecificPair name="UserID" value="bob"/>
<ClientSpecificPair name="OriginalQuery" value="blackadder"/>
</ClientSpecificPairs>
<Field 2> Test field 1b</Field 2>
</record 1>
<record 2>
<Field 1> Test field 2a</Field 1>
<ClientSpecificPairs>
<ClientSpecificPair name="UserID" value="edmund"/>
<ClientSpecificPair name="OriginalQuery" value="blackadder"/>
</ClientSpecificPairs>
<Field 2> Test field 2b</Field 2>
</record 2>
e.t.c.
</xml>

Is this possible using the DataInsert Node or does the mapping need to be done using a compute node and some ESQL instead (my original preference was to keep things simple and use the node appropriate to the task but I'm beginning to have my doubts)?

Any help greatly appreciated.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Jun 19, 2007 8:53 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

I guess the v6 mapping should be able to handle this.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
neilgc
PostPosted: Tue Jun 19, 2007 8:57 am    Post subject: Reply with quote

Novice

Joined: 03 Jul 2002
Posts: 20
Location: London

Ah, thanks, currently working in V5 toolkit but we're in the middle of an upgrade so will check out the v6 toolkit.

Need to find out if this project needs to go live before we roll v6 to production though
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Jun 19, 2007 8:59 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

I don't know if the v5 mapping can handle this or not - it's less a matter of the version of the Toolkit and more a matter of the runtime version.

I *think* the v5 mapping *should* be able to handle this - but I don't know.
_________________
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 » Data Insert Node, Name Value Pairs
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.