Skip to Content
avatar image
Former Member

Expression editor in Xpath receiver detrmination

Hi all,

I am working on Proxy XI File adapter.

In the receiver determination step of XI Configuration I am using the Xpath expression as below:

(/p1:MT_Test/Test1/Field1 = XYZ) -


send to receiver1

(/p1:MT_Test/Test1/Field2 = ABC)----


send to receiver2

My XI Structure:

MT_Test

Customer

Field1

Field2

Company

Field1

Field2

Test1

Field1

Field2

The value 'XYZ' comes from the payload.

If it is XYZ then send it to Receiver.

If I am not using any condition then it is working fine.

Is there any syntax error in the Xpath Expression?

And also in the Expression Editor I cannot see the MT_Test Structure.

I would appreciate and award points if anyone can get back with this.

Thank you.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Nov 21, 2006 at 06:39 PM

    Hi,

    MT_Test is target or source... it would be visible only if it belongs to sender interface.

    You can also try Enhanced Receiver Determination

    /people/venkataramanan.parameswaran/blog/2006/03/17/illustration-of-enhanced-receiver-determination--sp16

    Regards,

    Prakash

    Message was edited by:

    Prakash Arunachalam

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 21, 2006 at 06:38 PM

    Hi,

    what kind of service do you use?

    if business system then you can add your product

    (that has your software component in whcih you have your message)

    to the technical system in SLD

    refresh sld link from directory and then you should see the message

    structure

    then you can go for the expression editor and just choose the

    Field1 Field2

    Regards,

    michal

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      Remember also to activate your changes inside integration directory. It looks like something is wrong with your configuration (but it's not strictly related to your scenario) because user XIDIRUSER (standard integration directory user) doesn't have authorization to run test.

      Regards,

      Wojciech

  • avatar image
    Former Member
    Nov 21, 2006 at 06:39 PM

    Hi,

    Try to test it inside integration directory in the test tool.

    Check also something like that.

    (/p1:MT_Test/Test1/Field1 = 'XYZ') -


    send to receiver1

    (/p1:MT_Test/Test1/Field2 = 'ABC')----


    send to receiver2

    By the way you should be able to select element from message type.

    Regards,

    Wojciech

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 22, 2006 at 12:58 AM

    if you feel any syntax error in Xpath, use Altova XMLspy to idnetify it.. it will also convert multiple xtensible languages to file and vice versa

    thanks-Gopal

    Add comment
    10|10000 characters needed characters exceeded