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 » Taking response from attributes

Post new topic  Reply to topic
 Taking response from attributes « View previous topic :: View next topic » 
Author Message
pa1
PostPosted: Wed Nov 02, 2011 5:21 am    Post subject: Taking response from attributes Reply with quote

Novice

Joined: 20 Oct 2011
Posts: 13

Hi

I trying to capture an xml response message. It is coming in below way. How to capture the value Nany. And Iam using WMB 7.0 version

<simpleAttribute name="FIRSTNAME">Nany</simpleAttribute>


I am trying like this.

InputRoot.XMLNSC.parties.simpleAttribute.(XMLNSC.Attribute)FIRSTNAME;

Can any one give suggestions.
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Nov 02, 2011 5:25 am    Post subject: Re: Taking response from attributes Reply with quote

Grand High Poobah

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

pa1 wrote:
Can any one give suggestions.


FIRSTNAME is the value of the attribute not it's name

Check out any XML reference source.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Nov 02, 2011 5:28 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Use a Trace node to output the logical message tree that is produced for the XML document you are parsing with the XMLNSC parser.

Post the output you get from that trace node.

Review the InfoCenter on accessing members of the XMLNSC tree, and use that information to construct an ESQL expression that maps to the field you want...

What you posted will not access anything that is parsed from the xml you posted - unless you posted something that is from the SCHEMA rather than from the DOCUMENT. But even then, you haven't provided enough information to confirm that you can access the field the way you have tried.
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 » Taking response from attributes
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.