Connect with WCF to a WebService authenticated with username/password

前端 未结 3 1861
不知归路
不知归路 2021-01-31 10:53

I created a proxy of a Web Service with Visual Studio 2008, and it created for me the following entry in the app.config:


        <         


        
3条回答
  •  南方客
    南方客 (楼主)
    2021-01-31 11:24

    I had the same problem and tried the solution above Somehow this didn't work for me I was keep getting the message "No WS-Security header found"

    After a long time of testing and trying I manage to get it work I added the header code in the client as below and then it works!

    
        
            
                
                    
                        XXX
                        XXX
                        XXX
                    
                
            
        
    
    

提交回复
热议问题