cancel
Showing results for 
Search instead for 
Did you mean: 

XPath Condition - Dynamic determination

Former Member
0 Kudos

Hi,

I am doing one scenario where I need to determine interface dynamically. So in interface determination I am configured two inbound interfaces with some condition. For that I am using XPath condition.

Following is my source data structure.

<?xml version="1.0" encoding="UTF-8"?>

<ns0:MT_test xmlns:ns0="urn:aa-bb:test">

<Input>

<Input>

<Input1><b>Mr.</b> FirstName LastName</Input1>

</Input>

</Input>

</ns0:MT_test>

<b>Condition:</b>

/p1:MT_QueryDamageIntentClaim1/Input/Input/[substring(Input1,1,3) = 'Mr.']

If I use simple condition (= and not EX) then this is working fine. But here I need to compare first 3 characters from <input1> and so I can not use simple condition.

For this I already referred following blogs and URL but it is not working.

<a href="/people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination:///people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination

<a href="/people/prasadbabu.nemalikanti3/blog/2006/09/20/receiver-determination-based-on-the-payload-of-input-dataextended-xpathcontext-object:///people/prasadbabu.nemalikanti3/blog/2006/09/20/receiver-determination-based-on-the-payload-of-input-dataextended-xpathcontext-object

Regards,

Sunil Bhavsar.

View Entire Topic
henrique_pinto
Active Contributor
0 Kudos

Sunil,

is your message type MT_test or MT_QueryDamageIntentClaim1 ?

Regards,

Henrique.

Former Member
0 Kudos

Hi

I'm facing a similar kind of problem.I need to dynamically determine the namespace in interface determination.

In my condition i gave /MT_Prdoct/Record/ID= 01.I need to dynamically determine the namespace coming from outbound message interface MI_Product_OB.how do i do that?

Thanks