从silverlight调用https wcf服务 [英] calling https wcf service from silverlight
问题描述
我正在尝试从silverlight访问https wcf服务。
clientaccesspolicy放在服务root上,我已通过silverlightspy验证它显示为有效且允许调用。
i能够从桌面客户端成功调用该web服务,但是当尝试从silverlight调用时,它会抛出一个错误,调用....服务失败可能是跨域poliecy等无效....
任何想法????
这里也是服务跨域策略:
i am trying to access a https wcf service from silverlight. the clientaccesspolicy is placed on service root and i have validated through silverlightspy its showing it as valid and calls allowed. i am able to call that webservice successfully from desktop client but when tries to call from silverlight it throws an error that call to .... service failed may be cross domain poliecy etc is not valid.... any ideas???? here is the service cross domain policy too:
<?xml version="1.0" encoding="utf-8"?>
<access-policy> <cross-domain-access>
<policy>
<allow-from http-request-headers="SOAPAction">
<domain uri="*" />
</allow-from>
<grant-to>
<resource include-subpaths="true" path="/" />
</grant-to>
</policy>
</cross-domain-access>
</access-policy>
推荐答案
您需要一个单独的域节点用于https:
You need a separate domain node for https:
<domain uri="https://*" />
从这篇文章:
这篇关于从silverlight调用https wcf服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!