I use relative addresses in ServiceReferences.ClientConfig for silverlight. Everything works great. Then I switched to https.
I then realized that I no longer see this with the relative:
../myservice.svc
instead开发者_Python百科 of
https://mysite/myservice.svc
Can you do relative addresses with https?
It is the endpoint address that is relative.
<endpoint address="../WCFProxies/WCF.svc"
binding="customBinding"
bindingConfiguration="IWCF"
contract="IWCF"
name="CustomBinding_WCF" />
You can do relative HTTPS of course. The problem is that HTTPS & HTTP are not interchangeable. that is, http://www.domain.com/page can't access https://www.domain.com/otherpage in a relative way. for this matter they are two different domains altogether. What you might want to do is to maybe server your XAP from HTTPS as well. that way the relative url would work.
精彩评论