1.2k questions

1.4k answers

361 comments

339 users

Categories

Sidebar
0 votes
939 views
by brandon-w-8204 (34.1k points)

1 Answer

0 votes

You add an entry to the parameter map see sample code below:

var parameterMap = qie.newParameterMap();    
parameterMap.put("http.header.content-type", 'application/xml');    
parameterMap.put("http.header.headerName", 'someValue');    

var urlTemplate = qie.evaluateTemplate(qie.getWsEndpointUrl('wsName')); 

jsonResponse = qie.callRESTWebService(
   "wsName",
   urlTemplate,
   "GET",
   null,
   parameterMap,
   60000);

 

See also:

Handling HTTP requests and responses

Making Requests via qie.callRESTWebService()

by brandon-w-8204 (34.1k points)
edited by rich-c-2789
...