dli
dli

Reputation: 3

Error connecting SOAP service : An HTTP Content-Type header is required for SOAP messaging and none was found

Recently, my hard drive has been changed and a fresh installation of Windows 11 done. Since then, a SOAP service, from one of our subcontractor, doesn't work anymore on my computer in Rider. When I contact it, I receive the following error message : An HTTP Content-Type header is required for SOAP messaging and none was found.

I don't have any access on this web service, it's hosted externally, so I can't change anything on it.

For test, I put my previous SSD in the computer and it's working fine, so there is no change on subcontractor service.

is force in code and service is TLS1.2

I have try recommendation I could fine on internet, but I'm still stuck.

I'm using Windows 11 Pro 23H2, Rider 2024.1.3 (or VS2022, same issue). The application is in [tag:Framework 4.6.2] (MVC) About code, it's exacty the same, the repository has been copied from previous drive to the new one.

I have googled and try what I could found about the error message : An HTTP Content-Type header is required for SOAP messaging and none was found

Upvotes: 0

Views: 323

Answers (2)

dli
dli

Reputation: 3

Thanks all for your answers ! The issue is not solved yet but I have a better view now. My initial request seems not accepted anymore, so I receive a response message with the specific error in it. But this response message is not XML (or soap) compliant so I do have a ProtocolException. I don't know if it's the content (html instead of xml) or a missing header. I'm waiting more informations from the WS creator.

I found the the issue with fiddler, more friendly than WinHTTP logs, thx for the suggestion. Very strange we can't check the initial response received in code.

Upvotes: 0

Lucky_Bricks
Lucky_Bricks

Reputation: 46

To verify whether the Content-Type was missed from the server response or not, having a look at the WinHTTP logs would be helpful. Is there any difference between the working machine and the newer one?

Upvotes: 0

Related Questions