views:

1147

answers:

3

hi, 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>
A: 

Have you looked here?

http://stackoverflow.com/questions/122144/calling-wcf-service-from-silverlight/123432

Kon
is there any restriction if the service is on https and caller is on http?
Usman Masood
+1  A: 

This is a great source of silverlight + wcf info:

http://www.netfxharmonics.com/2008/11/Understanding-WCF-Services-in-Silverlight-2

mdm20
+1  A: 

You need a separate domain node for https:

 <domain uri="https://*" />

From this post:

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

James Cadd