I'm trying to interact with a SOAP service (which I have no control over). Looking at the response, I'm assuming that the content-type on the response is application/xml. In order to interact with this service, I'm using basicHttpBinding which sends the content-type as text/xml. Everything is done programmatically i.e. I don't have any web.config to specify the binding information. I've understood that BasicHttpBinding is SOAP1.1 which has the content-type as text/xml I've also tried switching it to WSHttpBinding which is SOAP 1.2 but the only I still get the same exception since it updates the content-type to application/soap+xml.
Could someone please share their thoughts?