.NET – getting text/html in stead of text/xml on your SOAP calls?
Posted by jpluimers on 2009/09/29
Recently, we got this on a project:
inner=System.InvalidOperationException: Client found response content type of ‘text/html;charset=utf-8’, but expected ‘text/xml’.
The request failed with an empty response.
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
Usually this means that the request did not get passed from the WebServer to the actual SOAP layer.
In this particular case it was an overly active ISA admin that had blocked the access to the underlying SOAP Web Service.
–jeroen
Leave a Reply