WCF Accept Response without content type
Hello,
I have the following problem: I am sending a SOAP Message to a webservice. I have added it via a WSDL file as a connected service to my project.
Now I am creating a client object with binding, endpointadress etc. and call the method to send the message.
I have looked at it with fiddler, my message is going out correctly and I am getting back a response.
The content of the response is like I expect it. It´s a xml string and it´s like I expect it (it says that they got my message and accepted it).
But my program throws the following exception:
"An HTTP Content-Type header is required for SOAP messaging and none was found."
I can see in fiddler that there is no content-type defined in the response header.
My problem is that the webservice on the other side is not mine and I can´t change the header information.
Is there a way to ignore this exception and process the response? Because the content is correct and I can work with it.
Thanks for your help!