.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

WCF and SSL Offloading

Posted By:      Posted Date: September 16, 2010    Points: 0   Category :ASP.Net
I have a load balancer in front of my web server performing ssl offloading.so e.g https://my.website.com/service.svc will hit my server's http://my.website.com/service.svcNow the problem is, http is not available for this url. so when i tried to add service reference from visual studio, i enter the https url, the output from the page refers to http links which does not exist and cause the service reference to fail.i've already added the neccessary settings inside web.config to make the wcf service work with ssl offloading <security mode="None">            <transport clientCredentialType="None" proxyCredentialType="None"              realm="" />            <message clientCredentialType="UserName" algorithmSuite="Default" />          </security>i've also updated the svc.cs file to [ServiceBehavior(AddressFilterMode = AddressFilterMode.Any)]so my question now is.. how do i make this url return https urls rather than the http ones

View Complete Post

More Related Resource Links

How to configure SQL Server 2008 R2 Reporting Services for SSL offloading

Hi How to configure SQL Server 2008 R2 Reporting Services for SSL offloading? I found steps for SQL Server 2005 Reporting Service here http://technet.microsoft.com/en-us/library/ms345223(SQL.90).aspx . Will this steps work for 2008 R2 also?  Thanks

Offloading SSL at LB and WSDL generation

Greetings, We have two web servers running a few web services behind a load balancer (LB) and we recently decided to terminate incoming SSL requests at the LB level instead of the web server level so we have less load on the servers.  The problem is now when the WSDL file is generated for the web services, they have http and not https as the SOAP ADDRESS LOCATION.  Since we don't support http, it turns out to be a broken link when references are made to the web service.  I read somewhere that if you make the directory in IIS requiring SSL, the WSDL will generate https for the SOAP ADDRESS LOCATION.  This, of course, doesn't work in our situation since SSL has already been offloaded at the LB level.  Requiring the directory to accept only SSL will return an error page. I understand that we can, with code, override WSDL file generation.  I also know about http 301/2 redirect.  But can anyone think of a better way to have wsdl file placing the https for the endpoint url instead of http? Thanks in advance for you help.    
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend