capdragon
capdragon

Reputation: 14899

specify location in wsdl:import

I'm trying to have my WCF services run completely off HTTPS. However when WCF generates the WSDL it provides locations that are not secure (http) and not allowed (rejected) by server.

How do i get this:

<wsdl:import namespace="https://www.mydomain.com/ogc/csw/ebrim/wsdl1.1" location="http://www.mydomain.com/ogc/csw?wsdl=wsdl0"/>

to read this (notice location attribute now using https):

<wsdl:import namespace="https://www.mydomain.com/ogc/csw/ebrim/wsdl1.1" location="https://www.mydomain.com/ogc/csw?wsdl=wsdl0"/>

I can specify my namespace in my interface file but i don't' see how to specify location.:

[System.ServiceModel.ServiceContractAttribute(Namespace = "https://www.mydomain.com/ogc/csw/ebrim/wsdl1.1", ConfigurationName = "MyDomain")]
public interface ICatalog
{

I've tried modifying my baseAddress, but that didn't do anything.

Upvotes: 0

Views: 2995

Answers (1)

Dominik
Dominik

Reputation: 3362

You have to specify the httpsGetEnabled configuration property on the wcf stack. Check the following link to the MSDN

Upvotes: 1

Related Questions