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

后端 未结 17 2363
长发绾君心
长发绾君心 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:19

    I run into naming problem. Service name has to be exactly name of your implementation. If mismatched, it uses by default basicHttpBinding resulting in text/xml content type.

    Name of your class is on two places - SVC markup and CS file.

    Check endpoint contract too - again exact name of your interface, nothing more. I've added assembly name which just can't be there.

    
        
        
      
    

提交回复
热议问题