Skip to main content
deleted 48 characters in body
Source Link
Omar
  • 16.7k
  • 10
  • 53
  • 69

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.

If you have some idea, please help. Thanks.

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.

If you have some idea, please help. Thanks.

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.

Source Link

WCF add custom HTTP header into request

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.

If you have some idea, please help. Thanks.