How to authenticate user while calling WCF service using AJAX?

后端 未结 3 1057
醉梦人生
醉梦人生 2021-02-10 16:10

I have a WCF service which needs to be called from client side(ajax call). I want to use ScriptManager on ASPX page to add a ServiceReference to the WCF service (or) JQuery ajax

3条回答
  •  -上瘾入骨i
    2021-02-10 16:39

    for WCF web http service The only way to secure a Web endpoint is to expose it through HTTPS, using transport security. When using message-based security, security information is usually placed in SOAP headers and because the messages sent to non-SOAP endpoints contain no SOAP envelope, there is nowhere to place the security information and you must rely on transport security.

提交回复
热议问题