views:

1045

answers:

0

I'm calling a third party java web service from c#. It was working fine until they changed the server's message encoding from Mtom to Text. I changed the binding in the config file and now whenever I call the service I'm getting this error:

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

If you look at the response it contains this:

Content-Type: text/xml; charset=utf-8

I can't see why it is complaining about the binding when the content type is exactly the same. Anyone have any ideas? This is driving me crazy.