We're working with a client who uses Java to call our .NET web service. We've received their request and responded successfully, but they're saying they can't process the response because of the SOAP headers. What they want us to do is to send an empty header instead. How do I control that?
Current response:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<s:Header>
<ActivityId CorrelationId="ec996ca1-9999-9999-9999-50fce66eb706" xmlns="http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics">00000000-0000-0000-0000-000000000000</ActivityId>
<o:Security s:mustUnderstand="1" xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<u:Timestamp u:Id="_0">
<u:Created>2018-02-12T17:16:24.545Z</u:Created>
<u:Expires>2018-02-12T17:21:24.545Z</u:Expires>
</u:Timestamp>
</o:Security>
</s:Header>
<s:Body>
<MyResponse xmlns="http://xmlns.oracle.com/integration/b2b" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Status>Success</Status>
<ErrorMessage i:nil="true" xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"></ErrorMessage>
</MyResponse>
</s:Body>
</s:Envelope>
Intended response:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<s:Header></s:Header>
<s:Body>
<MyResponse xmlns="http://xmlns.oracle.com/integration/b2b" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Status>Success</Status>
<ErrorMessage i:nil="true" xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"></ErrorMessage>
</MyResponse>
</s:Body>
</s:Envelope>