on 08-20-2010 4:18 AM
Hi Experts, I get stucked in the XPATH expression in the Receriver Determination(RD) :
The input xml (default namespace settting) is like this :
<?xml version="1.0" encoding="UTF-8" ?>
<MT_XML_SENDER xmlns="http://test.com">
<LAST_NAME>Bryant</LAST_NAME>
<FIRST_NAME>Kobe10</FIRST_NAME>
</MT_XML_SENDER>
In the RD, I tried serveral XPATH expressions :
/MT_XML_SENDER/LAST_NAME = Bryant
/MT_XML_SENDER/LAST_NAME = "Bryant"
/MT_XML_SENDER(LAST_NAME = \"Bryant\") EX
But in every case, the PI always told me it could not find the receiver, I don't know what to do........
(BTW,if I remove the condition, PI could work as desired, so it is 100% related to XPATH setting)
Thanks very very much!!!!!
Ray
You probably noticed by yourself, but in the Condition Editor, it is necessary to set the namespace to a prefix and then create the XPath expression based on that prefix. i.e.
/p1:MT_XML_SENDER/p1:LAST_NAME
And on the prefix definitions, you set it to your namespace:
p1 http://test.com
Easiest way to do it is to go through the message structure, though, since it will fill the prefix automatically as per the definition in the message type in repository.
Best regards,
Henrique.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I find the desired form
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.