I thought those of you following this thread may like to see how it turned out. While I have yet to get an official confirmation from MACR on the issue, I did post to the Flex forums and in general the engineers there are very good at getting back to folks.
On both machines I can now safely use the WS as long as I a) add an alias to jrun-web.xml and b) use the alias when I call my WS.
While I'd still like to know more about why this error occurs (especially since host/foo.cfc is ok but host/foo.cfc?WSDL is not), at least now I have a consistent URL and my Flex app (can I say - I love Flex) is running ok.
Archived Comments
Raymond,
We ran into the same problem and found that putting the CFC in a subdirectory allowed proper use of the CFC as a web service. I believe there is some problem with the '/' pathing interpretation by CF.
I did some testing to see if this would apply to paths other than / and it did not seem to be a problem.
Hope this works for you,
Thomas Woestman
I have a production web server that hosts several websites. I kept running into the 'Component not found', 'The component definition file for xxx component cannot be found on this server.' The wsdl output worked fine. It worked fine on the development server but that only hosts one site (development sites are in directories).
After reading several posts and web pages about this problem, I guessed that the problem has something to do with the '/' CF mapping.
So, here's what worked for me. Normally our IIS web servers are using c:\inetpub\wwwroot\site. The CF mapping of '/' points to c:\inetpub\wwwroot\. I created a directory off of wwwroot named cfc. I put the CFC's in that directory. Next I opened up the site in IIS admin and created a virtual directory named CFC to point to c:\inetpub\wwwroot\cfc. I also created a dummy directory (wwwroot\site\cfc) but I don't think that was necessary.
After making these changes, both the cfcexplorer and the wsdl would work. I ended up rebooting the web server to get Flash MX 2004 to work using these changes, tho.
If you want to host web services in the root directory of a site, I'm not sure what you will be able to do.
Now I can get Flash to connect to the web service and communicate with it. My next problem is getting the data to actually appear in the datagrid. It's there but with invisible text (I get 6 records back and can select the rows, but the data doesn't display).
Good luck,
sj