Connect with WCF to a WebService authenticated with username/password

前端 未结 3 1863
不知归路
不知归路 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

    The error message is right. WCF will not allow transport of usernames and passwords over an unprotected protocol. Your web service must be using HTTPS (with the attendant SSL certificate)

    Once you have an SSL certificate you have two options on how the credentials are sent, transport or security and multiple options for the type of credential. MSDN has a good guide to all of the various options.

提交回复
热议问题