|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
What does the $Root,$Body XPath variable mean? |
« View previous topic :: View next topic » |
Author |
Message
|
longtail |
Posted: Wed Mar 19, 2008 6:41 am Post subject: What does the $Root,$Body XPath variable mean? |
|
|
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 |
|
 |
jefflowrey |
Posted: Wed Mar 19, 2008 9:00 am Post subject: |
|
|
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 |
|
 |
mqpaul |
Posted: Thu Mar 20, 2008 5:46 am Post subject: I think your XPath syntax is wrong. |
|
|
 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 |
|
 |
longtail |
Posted: Thu Mar 20, 2008 7:13 am Post subject: |
|
|
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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|