When I was trying to use the WCF Service hosted on Console app, I got following errror.
Cannot process the message because the content type 'text/xml; charset=utf-8' was not the expected type 'application/soap+xml; charset=utf-8'.. The possible solution of this problem is
1. Ensure that Binding information in the client and service is same. For example if you are using wsHttpBinding in the service, ensure that the same binding is there on the client as well. (This is the frequently faced problem)
2. Do not keep more than one MessageEncoding type into the config file.
3. Change the binding type to basicHttpBinding at both client and service end.
Hope this will help someone.
Thanks
Regards,
Sheo Narayan
http://www.dotnetfunda.com