'Getting error from WCF when trying to consume it from SOAP UI
I have created SOAP UI project and given it the wsdl file location of my service.
Then have added mock response. Now clicked on start option.
I then get bellow error-
Exception occured during invocation of channel service 'MyServiceName'.
System.ServiceModel.ProtocolException: The content type text/html; charset=iso-8859-1 of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 175 bytes of the response were: '<html><body><p>There are currently 1 running soapUI MockServices</p><ul><li><a href="/mockbdSVC0254SoapHttp?WSDL">bdSVC0254SoapHttp MockService</a></li></ul></p></body></html>'.
Solution 1:[1]
In case anyone else comes across this like I did when I had this problem, the issue in my case was the endpoint URL of the client wasn't matching the address of the mock in my web.config file.
Before:
After:
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Benjamin Moloney |


