-
Enhancement
-
Resolution: Done
-
Major
-
None
-
False
-
False
-
NEW
-
NEW
-
Undefined
-
Allow to send headers in WebServiceWorkItemHandler
Engineering solution
In order to add a header, user should add arguments to WorkItem of the form:
Header_<header_name> = <header_content>
To add the name space, user should add an argument to WorkItem of the form:
Header_Param_NS_<header_name>=<ns_value>
In general, any additional parameter to be provided to the header in the future will follow this format:
Header_Param_<param_name>_<header_name>=<param_value>
If you want to include "" in the header parameter name, you need to change separator by providing a new one through system property _org.kie.workitem.ws.header.separator
Escape policy
By default, characters in the body of the request and header are escaped (or not) according to jaxb impl policy. If such policy is not the desired one, it can be changed for jaxb reference implementation in three different places:
- Globally, using system property org.jbpm.cxf.client.escapeHandler
- For body and all headers, using work item parameter named ESCAPE_HANDLER
- For a particular header, using work item parameter of the form:
Header_Param_ESCAPE_<header_name>
The expected value is the simple class name of one of the internal CharacterEscapeHandler implementations provided by Jaxb reference impl: MinimumEscapeHandler, NoEscapeHandler (to disable it completely) or DumpEscapeHandler
- incorporates
-
RHPAM-3699 Allow to send headers in WebServiceWorkItemHandler
- Closed