Skip to Content

Cloud for Customer custom integration: oData adapter issue with response headers


Currently I'm creating a custom integration on the latest oData API on SAP Cloud For Customer. I want to combine the results of multiple GET request towards the oData API. The issue is that you have delete the content-type and content-length headers in order to clean up from previous request. My current solution is to use a content modifier for this, I was wondering whether there is another way of doing this. I would like to delete all response headers from previous request in one go, and not having to guess which ones are giving problems in the current request.

Any thoughts on this?

Thanks in advance!


Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    Dec 10, 2018 at 03:01 PM

    Hello Bram,

    If I have understood your requirement correctly,you can use content modifier delete operation with expression to include alll(use *) after every request reply would solve your issue.

    Below blog might help you.



    Sriprasad Bhat

    Add comment
    10|10000 characters needed characters exceeded

    • Thanks for pointing this out Sriprasad! I tested it and it removes everything except the SAP_MessageProcessingLogID, which is fine for me (and else you would make an include to preserve more headers).

      Thanks for helping out!


  • Dec 10, 2018 at 11:05 PM

    Simple groovy script to remove all headers.

    def Message clearHeaders(Message message) {

    def headers = message.getHeaders()

    Set<String> set = new HashSet<>()

    for (header in headers) {





    return message;



    Add comment
    10|10000 characters needed characters exceeded