“A registration already exists for URI” when hosting same service for HTTPS and HTTP

后端 未结 2 1738
北海茫月
北海茫月 2021-02-09 07:58

I am trying to host the same service inside the same website using two endpoints one HTTP and the other HTTPS.

The problem is I can happily call one service (wh

2条回答
  •  长发绾君心
    2021-02-09 08:33

    OK, I fixed my problem. The issue was I was under impression that I had to create a secure folder in IIS and put the .svc file in there to guarantee SSL transmission. It turned out that it is not the case and all I had to do was to use the same .svc file and just define 2 endpoints:

    
    
    
    

提交回复
热议问题