I have a bindings XML file for BizTalk, the ports are WCF-WebHttp
which is basically for calling rest services.
These kind of ports have a HttpHeaders
field where you normally put:
Authorization: Basic ThenTHeToken
ContentType: application/json
When check with BizTalk deployment framework and preprocess the bindings,
This is the generated XML, where you can see after the bearer token, there is actually a Line Break
<TransportTypeData>
<CustomProps><ServiceCertificate vt="8" /><HttpMethodAndUrl vt="8">POST</HttpMethodAndUrl><MaxReceivedMessageSize vt="3">65536</MaxReceivedMessageSize><ClientCertificate vt="8" /><ProxyUserName vt="8" /><UseAcsAuthentication vt="11">0</UseAcsAuthentication><SuppressMessageBodyForHttpVerbs vt="8" /><VariablePropertyMapping vt="8">&lt;BtsVariablePropertyMapping xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" /&gt;</VariablePropertyMapping><SecurityMode vt="8">Transport</SecurityMode><ProxyToUse vt="8">Default</ProxyToUse><EndpointBehaviorConfiguration vt="8">&lt;behavior name="EndpointBehavior" /&gt;</EndpointBehaviorConfiguration><TransportClientCredentialType vt="8">None</TransportClientCredentialType><OpenTimeout vt="8">00:01:00</OpenTimeout><UseSSO vt="11">0</UseSSO><UseSasAuthentication vt="11">0</UseSasAuthentication><CloseTimeout vt="8">00:01:00</CloseTimeout><SendTimeout vt="8">00:01:00</SendTimeout><HttpHeaders vt="8">Authorization: Basic bearertoken=
Content-Type: application/json</HttpHeaders></CustomProps>
</TransportTypeData>
However when import the bindings into BizTalk application, then on on the output headers, the Line Break is lost, and BizTalk puts both the authorization and content type on the same line, and then it fails.
I can't fix this manually because in the other environments deployment is done automatically via Azure DevOps.
Any idea how to add that line break?