Skip to Content
0

rest receiver adapter- patternvalue

Nov 07, 2017 at 03:39 PM

21

avatar image
Former Member

Hi
I am configuring my rest receiver adapter with dynamic values in the URL .

eg..Http://host:port/number

number would be the concat value of order id and orderline number

I have with me 2 options

1. Use ASMA - Do concat in message mapping and pass the value in ASMA . I am able to get this working fine.

however the below should have also worked but unable to get the right step.

2. Use XPath expression - here I have 2 options

2. a )

Http://host:port/{number1}{number2} where number1 is the order id and number2 is the orderline number. I am unable to achieve this using XPATH. if I have a space or any character between number1 and number2, values get populated else not.

Http://host:port/{number1} {number2}

2b) using concat operation for number1 and number2 in pattern value and replacing it in the URL . I am unable to get the right Xpath for the Concat operation . Though concat works in XPATH validator it is not working in the adapter. get with a error cannot convert nodelist to a string .

concat(//number1,//number2)

can some one share inputs on handling this scenario through XPATH expression please.

Thanks

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers