I have a problem with message parsing on WCF service. I ran server-side of WCF application. Another company sends me such HTTP POST request:
POST /telemetry/telemetryWebService HTTP/1.1
Host: 192.168.0.160:12123
Content-Length: 15870
Expect: 100-continue
Connection: Keep-Alive
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header>
<wsse:Security> ... </wsse:Security>
</soapenv:Header>
<soapenv:Body>
...
</soapenv:Body>
</soapenv:Envelope>
How you can see this in this HTTP request missing 2 important headers: Soap Action and Content-type.That's why my service cannot process this request correctly.
I need to catch the request until it starts to be processed and manually add these headers.
I've already tried IDispatchMessageInspector, but whithout any result.
IDispatchMessageInspectordidn't work, perhaps show (a sample of) the code and the problem/error with it? Note that you can edit your question at any time. (PS. I don't suppose fixing this on the client side is an option?)