I am developing a WCF service which is called by third party. They have a requirement that WCF service should send an empty response with HTTP status code 200. I have a void method and response contain SOAP envelope with empty body. But they are saying that response should be blank. I tried making the service OneWay but then status code is 202 not 200. Is there a way to achieve this?
<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>
<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>2020-07-02T16:07:55.708Z</u:Created>
<u:Expires>2020-07-02T16:12:55.708Z</u:Expires>
</u:Timestamp>
</o:Security>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
</s:Envelope>