macromedia flash flash remoting:
hello... i have trials of the cf stand alone server, flash pro 2004 and the remoting components installed and am trying to get flash to cooperate with a cfc through remoting. i'm developing a form application if that makes any difference. when i test my movie it tells me "error opening URL "http://localhost/flashservices/gateway." i have also tried using port 8500. the web service is set up in flash and the wsdl addresses work correctly. i did have some problems with cf because the of the account the service was using to login in the services control panel although that has been remedied...perhaps the two problems are related though. i set the cf server up to use IIS and the path from the inetpub\wwwroot is /tattooSite/cfc/tattooInitApp.cfc. since flash can see the service i'm at a loss to explain why it can't access the gateway once it is tested or published. i'm probably overlooking something simple but any suggestions would be great! thanks, Sean here is the code i have on the first frame of the root form screen. searchDropdown is the name of the screen that has the combo boxes. _global.__dataLogger=new mx.data.binding.Log(); //to enable trace log #include "NetServices.as" #include "NetDebug.as" // #include "DataGlue.as" _global.gateway = "http://localhost/flashservices/gateway"; _global.cfcPath = "tattooSite.cfc.tattooInitApp"; if (isGatewayOpen == null) { // create remoting connection isGatewayOpen = true; NetServices.setDefaultGatewayUrl(gateway); var gateConn = NetServices.createGatewayConnection(); var initAppService = gateConn.getService(cfcPath, this); trace("connected"); // call web service to initialize the combo box initAppService.getCats(); trace("service getCats called"); initAppService.getArtists(); trace("service getArtists called"); } // default responders function getCats_result(result) { trace("records: "+result.getLength()); trace("init drop down"); this.searchDropdown.catSearch_cb.dataProvider(result); // set first row this.searchDropdown.catSearch_cb.addItemAt(0, "Select a Category", "NONE"); } function getArtists_result(result) { trace("records: "+result.getLength()); trace("init drop down"); this.searchDropdown.artistSearch_cb.dataProvider(result); // set first row this.searchDropdown.artistSearch_cb.addItemAt(0, "Select an Artist", "NONE"); }
thanks for the article! i went through all the steps and after contorting IIS to the best of my ability it is still giving me a 404. i stopped www publishing, ran the bat files and restarted www publishingand IIS. then i checked out the properties for the default web site and the isapi filters panel didn't have the jrun connector listed - as the article said it would after the bats do their work. i tried adding C:\CFusionMX\runtime\lib\wsconfig\2\jrun.dll but it is coming up as Not Loaded in the isapi tab. should i be using a different dll for the jrun connector? i also created a virtual directory for the site where the site files reside on a seperate drive. now, if i try to pull up my cfc (http://localhost/tattooSite/cfc/tattooInitApp.cfc), i log in to the CF admin and it says that it can't find the component. however if i add ?wsdl to the above url it shows the xml schema just fine. would this be causing the problem for remoting? in some instances one path seems to work but in others a similar path doesn't. that would explain why the web service shows up in flash but then when i test it doesn't resolve the directory correctly. i don't have the tattooSite folder in the cfroot\wwwroot because localhost is resolving to Inetpub\wwwroot. does the path to the cfc need to be relative to the cfroot\wwwroot in order for remoting to access it? thanks again for any suggestions! Sean
Don't see what you're looking for? Try a search.
|