How to add custom HTTP header when invoking a web service task?

wwang's picture
Contributed by:wwang
Created on:September 29th, 2009
Last updated on:October 1st, 2009
Comments:0 comments Add a new comment!

In the input mapping script,  you can define custom post parameters via BPContext (see example below):

 
    Map<String, String> customHeaders = (Map <String, String>) bpContext.getParameter("CUSTOM_HEADERS");
    customHeaders.put("ParamName", "ParamValue");
 
Note: availabe since build: 32.0.0