Skip to Content

REST to Web service Interface - Pick date from sender HTTP url and pass it in mapping

Hi Experts,

I am using REST polling sender adapter to retrieve HTTP GET request. In this interface I need to pick the date from sender URL and pass it in Date field in mapping to the target Web service.

sample Sender URL:

http://<server_name>/api234/rowdata/bydate/2017-06-11

Please provide me your suggestions.

Thanks in advance.

Srikanth E

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Oct 24, 2017 at 03:19 PM

    Hello Srikanth,

    Using the UDF mentioned in the below link you can get the values from the rest URL and map it to that target structure of WS.

    Instead of REST IDS you can define your custom attributes as well.

    https://blogs.sap.com/2014/12/18/pi-rest-adapter-using-dynamic-attributes/

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 25, 2017 at 11:06 AM

    Hello Srikanth,

    Its like which value you define in the URL pattern Element.

    Check the below image.

    Define the same in the mapping.

    Add comment
    10|10000 characters needed characters exceeded

    • OK Srikanth.

      This is actually little weird and which SAP PO version and SP your using.

      Can you try keeping some HTTP headers and see if those values are getting reflected.

      In my version HTTP headers are not working seems to be bug.