Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/silverlight/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Silverlight ServiceReferences.ClientConfig相对地址和https_Silverlight_Wcf - Fatal编程技术网

Silverlight ServiceReferences.ClientConfig相对地址和https

Silverlight ServiceReferences.ClientConfig相对地址和https,silverlight,wcf,Silverlight,Wcf,我在silverlight的ServiceReferences.ClientConfig中使用相对地址。一切都很好。然后我切换到https 然后我意识到,我不再在亲戚身上看到这一点: ../myservice.svc 而不是 你能用https做相对地址吗 端点地址是相对的 <endpoint address="../WCFProxies/WCF.svc" binding="customBinding"

我在silverlight的ServiceReferences.ClientConfig中使用相对地址。一切都很好。然后我切换到https

然后我意识到,我不再在亲戚身上看到这一点:

../myservice.svc

而不是

你能用https做相对地址吗

端点地址是相对的

   <endpoint address="../WCFProxies/WCF.svc"
                      binding="customBinding"
                      bindingConfiguration="IWCF"
                      contract="IWCF"
                      name="CustomBinding_WCF" />


当然,您可以使用相对HTTPS。问题是HTTPS和HTTP不能互换。也就是说,不能以相对方式访问。就这一点而言,它们是两个完全不同的领域。您可能想做的是,也可以通过HTTPS为您的XAP提供服务器。这样相对url就可以工作。

relative不是特定于http或https的;你能发布你的配置吗?