79089581

Date: 2024-10-15 10:55:13
Score: 1
Natty:
Report link

The approach you're using to set the Content-Type header is correct in principle. Writing to the "HttpHeaders" context property should allow you to set custom HTTP headers. However, there are a few potential issues that could prevent this from working:

a. The property name "HttpHeaders" is case-sensitive. Make sure it's exactly as shown.

b. The namespace URI must be correct. The one you're using looks right, but double-check it.

c. The format of the header string is important. Each header should be on a separate line, ending with a CRLF (\r\n).

Another approach is to set these properties in the WCF-Custom adapter configuration:

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Aryan Raj