Wcf Basic authentication

前端 未结 4 1598
小蘑菇
小蘑菇 2021-02-18 16:28

Having some trouble using basic authentication with a simple test Wcf service. I am getting an exception:

The requested service, \'http://qld-tgower/test/

4条回答
  •  闹比i
    闹比i (楼主)
    2021-02-18 17:14

    Change the name and contract of the service to include the namespace.

    Also, remove the endpoint address (set it to "") and don't include proxyCredentialType in the transport tag.

    End result of the web.config should look something like this

      
    
        
          
            
          
        
    
        
          
          
        
    
        
          
            
              
                
              
            
          
        
    
        
          
            
              
              
              
              
    
            
          
        
    
        
    
      
    

提交回复
热议问题