Re: [Flashcoders] Flash + Web Services problems
Does the server hosting the webservices have a crossdomain.xml file? The crossdomain.xml file has to be on the server/domain you're trying to access, not on the server/domain the Flash movie resides on. http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14213 regards, Muzak - Original Message - From: "Liam Mincy" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Monday, October 09, 2006 12:25 AM Subject: Re: [Flashcoders] Flash + Web Services problems >I thought I had sent an email with my resolution, if not I appologize :) > > The services in question were not allowing us to access them through the > means Flash > was communicating with the web service from our server. The company that was > hosting > the service said that there was nothing on teir end that would prevent the > transfer > of data, as demonstrated with our local access to the services. There may > have been > a firewall issue or something else happening on the Windows Server that was > hosting > things that was blocking the transfer. > > I did not come to a resolution, per se, what we ended up doing was writing a > .NET > web service on the same machine as the Flash. That web service sat between > the Flash > and the remote web service to pass the data along and return the results with > its > own exposed methods. > > This was deadline / crunch time and since I couldn't get any real help from > the > server people, who said that everything was working, I just went with what I > knew > would work. > > On another project, however, I did use corssdomain.xml when callng Flash from > within > an iframe which called another web service on the machine local to the Flash > movie > within the iframe and that seemed to work well. > > When I get a moment I want to play with this to see what I am doing wrong or > if > there are just certain types of web services that do not communicate with > Flash when > on a server under my setup. > > What type of web service are you calling? What environment does the Flash live > within? Is there a crossdomain.xml file? > > liam m- > > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Flash + Web Services problems
I thought I had sent an email with my resolution, if not I appologize :) The services in question were not allowing us to access them through the means Flash was communicating with the web service from our server. The company that was hosting the service said that there was nothing on teir end that would prevent the transfer of data, as demonstrated with our local access to the services. There may have been a firewall issue or something else happening on the Windows Server that was hosting things that was blocking the transfer. I did not come to a resolution, per se, what we ended up doing was writing a .NET web service on the same machine as the Flash. That web service sat between the Flash and the remote web service to pass the data along and return the results with its own exposed methods. This was deadline / crunch time and since I couldn't get any real help from the server people, who said that everything was working, I just went with what I knew would work. On another project, however, I did use corssdomain.xml when callng Flash from within an iframe which called another web service on the machine local to the Flash movie within the iframe and that seemed to work well. When I get a moment I want to play with this to see what I am doing wrong or if there are just certain types of web services that do not communicate with Flash when on a server under my setup. What type of web service are you calling? What environment does the Flash live within? Is there a crossdomain.xml file? liam m- --- John Braunstein <[EMAIL PROTECTED]> wrote: > Liam, > > Did you ever find out the problem? Im having the same > issue. Everything works locally, but not live. > > Thanks, > > John __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Flash + Web Services problems
Liam, Did you ever find out the problem? Im having the same issue. Everything works locally, but not live. Thanks, John __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Flash + Web Services problems
Assuming that webservices.domain.com is where your web service is located, and www.domain.com is where your swf files are located, so you have the crossdomain.xml file on the correct server (it should be on webservices.domain.com)? Kevin N. Liam Mincy wrote: Unfortunately this doesn't seem to be doing it either. After I tried this I also put the following inside the code to no avail: System.security.allowDomain("webservices.domain.com","*","*.somedomain.com"); This one has me flummoxed... Thanks, liam m- --- Mike Britton <[EMAIL PROTECTED]> wrote: Like this: Mike ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Flash + Web Services problems
Unfortunately this doesn't seem to be doing it either. After I tried this I also put the following inside the code to no avail: System.security.allowDomain("webservices.domain.com","*","*.somedomain.com"); This one has me flummoxed... Thanks, liam m- --- Mike Britton <[EMAIL PROTECTED]> wrote: > Like this: > > > > > > > > > > Mike __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Flash + Web Services problems
Like this: Mike ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Flash + Web Services problems
Try adding a domain="*" attribute to , and a node to your cross-domain-policy nodes. Let me know if this works so I can feel a smug sense of satisfaction. Mike ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Flash + Web Services problems
My crossdomain.xml file is structured like the following: I am hoping that I do not have to register with a third party for certification, but this shouldn't be the case. Or rather I've never had to do this before. Thanks, liam m- --- Mike Britton <[EMAIL PROTECTED]> wrote: > What does your crossdomain.xml file look like? > > Mike __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Flash + Web Services problems
What does your crossdomain.xml file look like? Mike ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Flash + Web Services problems
Hi all, I was wondering if anyone has had this same issue and maybe had a solution. I have a Flash swf file which needs to connect to a Web Service to login and access the site. The Web Service is on another server (which I know is up and functioning by way of other tests) and Flash is trying to connect but is just not processing the request. During development and when I try the file locally the file gets the request, processes the XML, and logs the user in. So the problem has something to do with the file being on a server. I have also installed a crossdomain.xml file but this is not alleviating the problem... The things that I have identified as just boggling me are: - Does every remote call now require a security setting to be changed? - Is there a way to speed up the way Flash calls to a service or to stop it from hanging? I am aware that the speed is dependant upon my code, and here is how I am using the Connector: var wscListener:Object = new Object(); trace("Sending message to "+friendEmailAddress+" :: "+typeof(friendEmailAddress)); wscListener.result = function(evt:Object) { trace("Send to friend results :: "+evt.target.results); this.emailResults = evt.target.results; } wscListener.status = function(evt:Object) { trace("- Friend Status --"); trace("Friend fault code :: "+evt.data.faultcode); trace("Friend fault string :: "+evt.data.faultstring); trace("Friend detail :: "+evt.data.detail); } var wsConn:WebServiceConnector = new WebServiceConnector(); wsConn.WSDLURL = "http://webservice.mysite.com/myservice.asmx?wsdl";; wsConn.params = [fromEmailAddress, friendEmailAddress]; wsConn.operation = 'SendEmailToFriend'; wsConn.addEventListener("result", wscListener); wsConn.addEventListener("status", wscListener); wsConn.suppressInvalidCalls = false; wsConn.multipleSimultaneousAllowed = true; wsConn.trigger(); Again, this works locally fine but hangs on the server. Any help or suggestions would be appreciated. Thanks, liam m- __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com