WCF charset=utf-8 of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8)

后端 未结 5 633
误落风尘
误落风尘 2020-12-06 00:09

I\'m hosting a WCF service in IIS 7.5 using .NET 4.0. I also have a WPF application that I am using as my client that was built with Visual Studio 2010 and .NET 4.0. I add

5条回答
  •  一向
    一向 (楼主)
    2020-12-06 00:45

    As Steven Westbrook says in a comment on this answer:

    Add ?wsdl to your client's endpoint address, and you should have more luck with the service. ?wsdl is important - it means the browser is just getting "Web Services Description Language" for the service, and not calling the service.

    I had the same issue and adding ?wsdl solved my headache.

提交回复
热议问题