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 » What does the $Root,$Body XPath variable mean?

Post new topic  Reply to topic
 What does the $Root,$Body XPath variable mean? « View previous topic :: View next topic » 
Author Message
longtail
PostPosted: Wed Mar 19, 2008 6:41 am    Post subject: What does the $Root,$Body XPath variable mean? Reply with quote

Novice

Joined: 27 Jan 2008
Posts: 15

I want the HttpInput node to authenticate the user whose name and password are written is the soap head below from the LDAP server ,
<Envelop>
<Header>
<Username> n1 </Username>
<Password> p1 </Password>
</Head>
.......

but when I write the user id and password location ,I puzzled with the $Root, $Body,$MQMD variables, and I tried every possible,neight works:
$Root\<soapenv:Envelop>\<soapenv:Header>\<Username>
.............................

Please help me , thans very much!
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Mar 19, 2008 9:00 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Xpath $Root and $Body mean the same thing as ESQL Root and Body respectively.

Also, you can use ESQL for these fields, if that makes more sense to you. They are "multi-language" fields.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
mqpaul
PostPosted: Thu Mar 20, 2008 5:46 am    Post subject: I think your XPath syntax is wrong. Reply with quote

Acolyte

Joined: 14 Jan 2008
Posts: 66
Location: Hursley, UK

If you want to stick with XPath, I think you want:
Code:
$Body/Envelope/Header/Username

(I've not tried this with HttpInput nodes, but something similar works for FileOutput nodes. I hope I'm not exposing my XML/XPath ignorance )

If you're parsing SOAP envelopes, have you considered the SOAPInput node instead of the HTTPInput node?
_________________
Paul
Back to top
View user's profile Send private message
longtail
PostPosted: Thu Mar 20, 2008 7:13 am    Post subject: Reply with quote

Novice

Joined: 27 Jan 2008
Posts: 15

Thank you!

The esql expression works . I wasted too much time on it,and don't want to try the xpath again.
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 » What does the $Root,$Body XPath variable mean?
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.