Skip to Content
0
Former Member
Nov 27, 2006 at 04:48 PM

Xpath Syntax

63 Views

Hello all,

I am using the X-path expression in the Receiver determination step of XI.

My message type is:

<MT_test1>

- <LGYCD>

<LGY1>RSB</LGY1>

<CMP1>500501502</COMPS1>

<LGY2>SPT</LGY2>

<CMP2>503504510</COMPS2>

</LGYCD>

</MT_test1>

If I use condition:

(/p1:MT_test1/LGYCD[LGY1!='RSB'] &#8800; ' RSB ') then send to BS_RSB.

(/p1:MT_test1/LGYCD[LGY2!='SPT'] &#8800; ' SPT ') then send to BS_SPT.

<i><b>Then the message is sent to the Legacy system without any errors.</b></i>

If I use condition like this:

(/p1:MT_test1/LGYCD/LGY2 = ' SPT ') then send to BS_SPT.

(/p1:MT_test1/LGYCD/LGY1 = ' RSB ') then send to BS_RSB.

And also changing the single quotes to double quotes and giving some space etc.

I am getting the error "NO receiver found" .

Can anyone explain the cause of the error.

Thankyou.