Content type does not match binding

I am calling a third-party java web service from C #. It worked fine until they changed the encoding of the server messages from Mtom to Text. I changed the binding in the configuration file, and now when I call the service, I get this error:

Content Type multipart / related; type = "text / xml"; The response message does not match the content of the binding type (text / xml; encoding = UTF-8).

If you look at the answer, it contains the following:

Content-Type: text / xml; encoding = UTF-8

I don’t understand why he complains about binding when the content type is exactly the same. Does anyone have any ideas? It drives me crazy.

+4
source share

All Articles