Access WCF Service via SSL - Method not found

Assuming you have SSL configured correctly and now want to consume a webservice using https, the following will sum it up nicely.   I beat my head against the wall, as others have, far longer than I cared to - particularly since a few changes were all that were required to make it work.  

The following links were instrumental in creating the Server side Web.Config (they were not complete): 

The arrows point out two places that caused me issues - the first arrow (service1.svc) resulted in a "Method not allowed" error (the second link above did not have the service1.svc as as part of the endpoint address causing the error).

With the following changes made to the default Web.Config. I was then able to add service reference using the https://www.MyService.net/WCFServiceHost/service1.svc url  (note MyService.net is bogus).

Good news is that once you make the following updates to your Server side Web.Config you'll be able to consume your WCF Service using https://youraddress.com/service.svc.

 


Tags:
Categories:


Actions: E-mail | Permalink |  Grammar/Typo/Better way? Please let me know