I am using the code from http://www.asfusion.com/blog/category/flash-remoting
under the heading Remoting for ColdFusion Flash Forms. I am trying to learn how
to connect to a webservice from a flash form.
I have it working under one website on my web server, but not another web site.
Let me explain my setup:
I am running windows 2003 iis 6 with cold fusion mx 7 update 3.
I am using host headers to point to different folders.
Folder structure i:\inetpub\wwwroot (host header for this folder is webdev and
there are no mappings ponting to the root of that website)
I created a folder named "flashservices\gateway" under i:\inetpub\wwwroot. I
placed the cfc in that folder and placed the .cfm file in i:\inetpub\wwwroot.
with the following settings:
<cfoutput>
//create connection
var connection:mx.remoting.Connection =
mx.remoting.NetServices.createGatewayConnection("http://webdev/flashservices/gateway/");
//declare service
var myService:mx.remoting.NetServiceProxy;
</cfoutput>
and...
//get service. First parameter is path to component and
//the second it's the object that will handle the response
myService =
connection.getService("flashservices.gateway.flashRemotingResponder",
responseHandler );
//make call
myService.getDate(mask.text);
Folder structure i:\inetpub\wwwroot\phanet (host header for this folder is
intratest and there are one mapping (rootpha) that points to the root of the
website)
I placed the same .cfm file in the root of this web site
i:\inetpub\wwwroot\phanet with the following settings:
<cfoutput>
//create connection
var connection:mx.remoting.Connection =
mx.remoting.NetServices.createGatewayConnection("http://webdev/flashservices/gateway/");
//declare service
var myService:mx.remoting.NetServiceProxy;
</cfoutput>
and...
//get service. First parameter is path to component and
//the second it's the object that will handle the response
myService =
connection.getService("flashservices.gateway.flashRemotingResponder",
responseHandler );
//make call
myService.getDate(mask.text);
This does not work. Just by moving the file from one website to another
website on the same machine pointing to the same GatewayConnection location and
one works and the other does not. Why would it matter where I run the .cfm
file from? I know I have to put the cfc in a website with no mappings, but the
.cfm file too?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:213832
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54