开发者

ASP.NET "HTTPS" WebService

1) When I create a Webservice (.asmx) in Asp.Net, its default is HTTP, but I need it in HTTPS.. How to do this?

2) And is it possible then to access to the m开发者_运维问答ethods on this webservice with "JAVASCRIPT" - even if the Server is HTTPS?

Hope u guys can help me..


Normally you would adjust IIS on the webserver to make the service HTTPS. You would add a certificate to the website in IIS and check the "Requires Secure Channel (SSL)" check box (this will then redirect people attempting to use HTTP to HTTPS.

You should then be able to make AJAX calls from JavaScript by ensuring that you call your service with an https:// prefix, rather than a http:// prefix.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜