Skip to Content
0
Apr 20, 2018 at 02:59 PM

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

136 Views

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.

Attachments

host.png (72.3 kB)