Skip to Content
avatar image
Former Member

Can I map a message based on the content using XPATH condition?

Greetings, Can I determine the interface operation based on an XPATH expression?

The caller can only post to 1 target URL so I need to determine the intended operation based on file content as he has 2 potential structures that will be passed. This does not seem to be an obvious configuration option (PI 7.4) but it seems like it would be a common problem.

I can easily create an XPATH expression that will determine which operation to use but the only usage I see in IntegrationBuilder is using XPATH to determine the receiver (the comm-component). The receiver is the same for both messages.

Please advise! Thanks!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Feb 22, 2017 at 11:20 PM

    Hi Dan,

    One of the possible solutions for your problem is to create a common structure both the operation for the outbound interface. then create multiple inbound interface based on your number of structure and perform multimapping.

    regards,

    Harish

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 23, 2017 at 12:18 PM

    Hi Dan!

    Did you try to use conditions in interface determination?

    Regards, Evgeniy.

    Add comment
    10|10000 characters needed characters exceeded