specify location in wsdl:import

送分小仙女□ 提交于 2019-12-25 16:41:24

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/7390097/specify-location-in-wsdlimport

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!