Adding WCF Service Reference with https endpoint?

You need to change your binding to use transport security to use HTTPS.

Up vote 2 down vote favorite 1 share g+ share fb share tw.

My WCF service application works over http and https, however, when I add a service reference (with the https url) to it in my client, Visual Studio 2010 sets the endpoint in the config file to http. It doesn't appear to be as simple as changing that config endpoint to https since there are multiple files behind the scenes doing things with the xsd's and reference the http endpoint. How can I setup my service / client to force https so that it correctly sets the endpoint?

When I try to manually change the endpoint in the config file and set security mode to "Transport" I get this error: Exception Message: There was no endpoint listening at https://myservice/AvailabilityService. Svc that could accept the message. This is often caused by an incorrect address or SOAP action.

See InnerException, if present, for more details. I can, however, see that endpoint in IE, and am debugging locally. After I add my service reference with https and search the solution for its http equivolent, it finds a wsdl file referencing http, a configuration.

Svcinfo, and a configuration91. Svcinfo that utilizes the http url instead of https Here's my server side config: .. And the client side config: Perhaps I'm better off manually consuming the services in code? .net wcf ssl https endpoint link|improve this question edited Nov 7 '11 at 16:50 asked Nov 7 '11 at 15:38Chris Klepeis3,04331458 97% accept rate.

You need to change your binding to use transport security to use HTTPS msdn.microsoft.com/en-us/library/ms73304... Your server side binding should be configured for https as well as client.

Nieskanik - Tried that already. I've updated my question above. – Chris Klepeis Nov 7 '11 at 16:42 @ChrisKlepeis - What does your server-side config look like?

– Nick Nieslanik Nov 7 '11 at 16:45 Question updated with wever / client side configs. I've tried removing the httpGetEnabled, but that didn't help. – Chris Klepeis Nov 7 '11 at 16:52 @ChrisKlepeis - added expected server config for you to look at.

– Nick Nieslanik Nov 7 '11 at 16:59 Thanks that appears to have done the trick. I suppose I was under the incorrect assumption that a WCF Service Application did some of that under the hood, whereas its more explicit in WCF Service Librarys. – Chris Klepeis Nov 7 '11 at 18:26.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions