How to Send SOAP Headers in BPEL This section provides an example of how to send SOAP headers. To send SOAP headers in BPEL: Define a reference in the composite.xml file to refer to the HeaderService. Define the custom header variable, manipulate it, and send it using bpelx:inputHeaderVariable, as shown in the following example:<variables> <variable name="input" messageType="tns:HeaderTestRequestMessage"/> <variable name="output" messageType="tns:HeaderTestResultMessage"/> <variable name="request" messageType="services:HeaderServiceRequestMessage"/> <variable name="response" messageType="services:HeaderServiceResultMessage"/> <variable name="customHeader"messageType="services:CustomHeaderMessage"/> </variables> ... <!-- initiate the remote process --> <invoke name="invokeAsyncService" partnerLink="HeaderService" portType="services:HeaderService" bpelx:inputHeaderVariable="customHeader" operation="initiate" inputVariable="request"/>