none
Calling HTTPS service from local machine RRS feed

  • Question

  • What is the best practise for calling WCF service with HTTPS from local machine. WCF service has forms authentication which expects auth token. Below are my bindings for client but it doesn't seem to work. WCF service has the same binding (Security mode is Transport and wsHttpBinding)

    <wsHttpBinding>   
    <binding name="WSHttpBinding_IRep">
              <security mode="Transport">
              </security>
            </binding>
          </wsHttpBinding>
    
    
    <endpoint address="https://Domain/Service.svc" binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IRep" contract="RepSvc.IRep" name="WSHttpBinding_IRep"/>


    Chintan


    Wednesday, April 27, 2016 7:53 PM

Answers

  • Hello,

    >>WCF service has forms authentication which expects auth token.

    First please try to refer to the following article about how to secure the WCF with Forms Authentication:
    http://dotnetspeak.com/2012/01/securing-wcf-with-forms-authentication .

    >> but it doesn't seem to work.

    Do you meet any errors or exceptions? It will be better if you can share the detailed information about the errors/exceptions and service config file in here.

    Besides, the following article has showed us how to call the Https WCF Services with the wsHttpBinding, please try to refer to:
    http://www.codeproject.com/Articles/36705/simple-steps-to-enable-HTTPS-on-WCF-WsHttp-bindi .

    Best Regards,
    Amy Peng

    This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.


    Thursday, April 28, 2016 10:03 AM
    Moderator