Content Type application/soap+xml; charset=utf-8 was not supported by service

后端 未结 17 2337
长发绾君心
长发绾君心 2020-12-15 02:54

I am getting the error below while trying to add WCF service to WCFTestClient. I went through a number of solutions on the web but I couldn\'t get it to work.

Can

17条回答
  •  伪装坚强ぢ
    2020-12-15 03:26

    I had the same problem and solved it by using EnumMemberAttribute for enum member's attribute. If you are using enum type as data contract and its members attributed with DataMemberAttribute, same error occurs. You must use EnumMemberAttribute for members of enum

提交回复
热议问题