access header and properties into mapping sap cpi

import com.sap.it.api.mapping.MappingContext


def String getProperty(String propertyName, MappingContext context) {

    def propertyValue = context.getProperty(propertyName);

    return propertyValue;

}


def String getHeader(String headerName, MappingContext context) {

    def headerValue = context.getHeader(headerName);

    return headerValue;

}




Popular posts from this blog

SAP CPI : camle expression in sap cpi , cm, router, filter and groovy script. format

SAP CPI camel conditions and xpath conditions

oauth call to cpi integraiton suite from sap apim