Skip to Content

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

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)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    May 07 at 02:43 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded