Skip to Content
0

How to set dynamic host in NWDS URL Pattern for receiver rest adapter (GET Operation)

Apr 20 at 02:59 PM

39

avatar image

Hi all.

I have a requirement to set a dynamic host based on the content of my payload message. For example:

<n0:MT_PAYLOAD>

<Field1>xxxxxxxx</Field1>

</n0:MT_PAYLOAD>

If have "Field1" starting with "8xxx", I want my URL Pattern {host} to be "QAS", in case its "9xxx" I want the URL Pattern {host} to be "QAS-2".

I have already tried to use XPath expression, but no success. I'm transforming a message from XML (SAP ECC output) to JSON (legacy system) to get an information from there.

Thanks for your help.

host.png (72.3 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Chih-Chieh Chan May 07 at 02:43 AM
0

Hi,

I think you need to use "adapter specific attribute" (instead of "XPath expression"), and prepare the attribute by using message mapping reading your payload and translate into the customized URL you would like.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Chih-Chieh Chan.

Thanks for your answer!
I achieved this by using UDF and Dynamic Configuration for the parameter needed.

0