Need to hit a SOAP service whose request structure look as below
In spring integartion we can able to form the body part and hit the service and get the response .
<?xml version="1.0"?>
<soap:Envelope
xmlns:soap="http://www.w3.org/2003/05/soap-envelope/"
soap:encodingStyle="http://www.w3.org/2003/05/soap-encoding">
<soap:Header>
<m:Trans xmlns:m="https://www.w3schools.com/transaction/"soap:mustUnderstand="1">234
</m:Trans>
<authheader>
<username> uname</username>
<password>password</password>
</authheader>
</soap:Header>
<soap:Body xmlns:m="http://www.example.org/stock">
<m:GetStockPriceResponse>
<m:Price>34.5</m:Price>
</m:GetStockPriceResponse>
</soap:Body>
But how to form the header part along with body and send it in outbound gateway ?
Could someone help?