Usecase: Here, we will show you how to send or configure a custom HTTP header while invoking a External SOAP service.
The following highlighted Action header need to pass:
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005...>
<s:Header>
<a:Action s:mustUnderstand="1">http://www.testsoftwate.com/dataservices/bidata/2/testdataservice</a:Action>
<a:To s:mustUnderstand="1">http://www.servivehost/services/testdataservice</a:To>
</s:Header>
<s:Body>
...
</s:Body>
</s:Envelope>
Implementation Steps:
Step1: Create header schema for the custom SOAP headers as below:
<xsd:schema elementFormDefault="qualified" targetNamespace="http://www.w3.org/2005/08/addressing"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xsd:element name="Action" type="xsd:string"/> </xsd:schema>
Step2: save this as ActionHeader.xsd and checked the custom header option for request and upload the file to invoke configure adapter.