Connects to web service in Windows Client, but not Web Client

my game connects to a web service (MVC4 returning JSON) and works great as a windows client.

When I compile to a Web Client, it fails to connect to the service.

I get this message: " Unable to connect to server, please try again later > "

The graphics still load and display properly in the web client.

The service it is connecting to has the proper cross domain policy file, presumed because the windows client can connect to it.

However, in case that is an issue, here is the file:

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM
"http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
  <site-control permitted-cross-domain-policies="master-only"/>
  <allow-access-from domain="*"/>
  <allow-http-request-headers-from domain="*" headers="*"/>
</cross-domain-policy>

Is there any reason the web client can’t connect?

(I get the same results when running the web client from the same server as the service)

I have this same question and am hoping for a definitive answer, “Can the web player connect at all to a web service or WCF service?”

I will most likely be running the web player on the same server as the service is running.

I found the solution: For some reason, it wasn’t gathering the file from the website. Instead, I had to install a special Cross domain service, and add a line of code to use that. When I finally got it running, I posted it in my game blog, with an image that I felt summed up my excitement.

http://blog.warpwarscity.com/2013/03/the-net-works.html - It includes the steps I took to get it running.

Nice job, getting anything communication wise working in the web player is always an ‘effort’

I haven’t managed to get web service or WCF calls working in the web player. The WWW class is basically your best bet.