locked
How to Configure JSON endpoint with https in WCF RRS feed

  • Question

  • Hi,

    I need to host a WCF service with JSON end point over HTTPS in IIS. Please tell me the steps of configuring this...

    Currently I have been implemented it using webHttpbinding with HTTP. I want to configure this to HTTPS.

    Ultimately I need access this WCF service via JQuery by using $.getJSON('.....') with HTTPS.

    Please guide me..


    Following is my configuration file.

    Thank you

    Pubudu




    Thursday, July 19, 2012 4:41 AM

All replies

  • Hi,

    Please check if this helps.

    http://msdn.microsoft.com/en-us/library/ms733768.aspx

    HTH

    Technocrat_aspire

    Monday, July 30, 2012 11:59 PM
  • How are you hosting your WCF Rest Service? If it is on IIS then you would need to map the https port on IIS and then browse to the WCF service using https.

    Also you would need to remove the baseAddress section if you are hosting on IIS as the address for the service is taken care by IIS. 

    If you are self hosting then you would need to do a https port mapping using netsh tool as given in the above msdn link posted by "techocrat_aspire".

    Your config needs to change the httpGetEnabled to httpsGetEnabled to true and that should be enough to get the server up and running the WCF service on HTTPS. 

    To access the WCF Service from a jquery by using $.getJSON you need to make sure that the WCF service and the page that is performing the call are in the same domain. Cross domain requests needs to be performed using JSONP


    Rajesh S V

    Wednesday, August 1, 2012 11:31 AM