Proper way to bind WCF webservice to both HTTP (for dev) and HTTPS (for production)
Posted
by Nicholas H
on Stack Overflow
See other posts from Stack Overflow
or by Nicholas H
Published on 2010-04-02T16:51:05Z
Indexed on
2010/04/02
16:53 UTC
Read the original article
Hit count: 541
Seems like this would be fairly straightfoward but I can't figure it out. In lieu of using an ASMX web service, I'm trying to go with WCF.. and finding it hard to figure out bindings. I would like to be able to use HTTP to connect to the WCF service for local development (and on our "staging" server), but require HTTPS on our production server. Should this be possible with two bindings? I cannot get it to work. If someone could provide an example of just a very basic HTTP and HTTPS WCF setup, I'd be eternally grateful.
Or point me to a book/website/etc. which solves all the mysteries of WCF.. that'd be great. Because right now it's looking easier to just go back to ASMX.
© Stack Overflow or respective owner