从silverlight调用https wcf服务 [英] calling https wcf service from silverlight

查看:150
本文介绍了从silverlight调用https wcf服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从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://*" />

从这篇文章:

http:// timheuer.com/blog/archive/2008/10/14/calling-secure-services-with-silverlight-2-ssl-https.aspx

这篇关于从silverlight调用https wcf服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆