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

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

    I had the same problem, got it working by "binding" de service with the service behaviour by doing this :

    Gave a name to the behaviour

    
            
    

    And making a reference to your behaviour in your service

    
      
    

    The whole thing would be :

    
    
    
      
        
      
      
      
        
          
            
              
            
          
        
        
         
                      
             
         
        
        
          
            
              
              
              
              
            
          
        
      
    
    
    

提交回复
热议问题