ColdFusionKing
Programmer
I downloaded the Babelfish sample application source code from the macromedia website:
Extracted the code in my CFMX folder. Opened the file: Babelfish.fla in Flash MX, brought up the NetConnectionDebugger and exported the flash movie. For those of you who have downloaded this sample application, when I click on the 'Translate' button, I get the following error.
DebugId: 0
EventType: "Status"
MovieUrl: "file:///D|/CFusionMX/ And Remoting/cfmx_flashmx_webservice/babelfish.swf"
Protocol: "http"
Source: "Client"
Time: 1055776690024
Date (object #1)
....."Mon Jun 16 16:18:10 GMT+0100 2003"
Status (object #2)
.....code: "SERVER.PROCESSING"
.....description: "Service threw an exception during method invocation: No service named is known to Flash Remoting MX."
.....details: "flashgateway.adapter.NoSuchServiceException: No service named is known to Flash Remoting MX.
at flashgateway.filter.AdapterFilter.invoke(AdapterFilter.java:251)
at flashgateway.filter.SecurityFilter.invoke(SecurityFilter.java:84)
at flashgateway.filter.LicenseFilter.invoke(LicenseFilter.java:58)
at flashgateway.filter.ErrorFilter.invoke(ErrorFilter.java:44)
at flashgateway.filter.LogFilter.invoke(LogFilter.java:43)
at flashgateway.filter.BatchProcessFilter.invoke(BatchProcessFilter.java:63)
at flashgateway.filter.DebugFilter.invoke(DebugFilter.java:38)
at flashgateway.filter.SerializationFilter.invoke(SerializationFilter.java:59)
at flashgateway.Gateway.invoke(Gateway.java:194)
at flashgateway.controller.GatewayServlet.service(GatewayServlet.java:56)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:226)
at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
at jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:348)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:294)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
"
.....level: "error"
.....type: "flashgateway.adapter.NoSuchServiceException"
The gateway connection is : myService = gateway_conn.getService(" this);
Its not just this example, any exmaple that uses a wsdl to connect to webservice fails. I can however connect to a webservice if I use a cfc, for ex:
googleService = gateway_conn.getService("google_search.googleService", this);
I read this article on the macromedia site:
What is says is that by default access from Macromedia Flash to web services using the Flash Gateway is disabled by default in ColdFusion MX Updater 3. I did exactly what it said in there to enable access and now I get a different error: NetConnection.Call.BadVersion error.
I don't understand why this is disabled in the first place. I have updater 3 installed and the webserver is IIS on win2k
I would appreciate your help
Regards,
Allan
Extracted the code in my CFMX folder. Opened the file: Babelfish.fla in Flash MX, brought up the NetConnectionDebugger and exported the flash movie. For those of you who have downloaded this sample application, when I click on the 'Translate' button, I get the following error.
DebugId: 0
EventType: "Status"
MovieUrl: "file:///D|/CFusionMX/ And Remoting/cfmx_flashmx_webservice/babelfish.swf"
Protocol: "http"
Source: "Client"
Time: 1055776690024
Date (object #1)
....."Mon Jun 16 16:18:10 GMT+0100 2003"
Status (object #2)
.....code: "SERVER.PROCESSING"
.....description: "Service threw an exception during method invocation: No service named is known to Flash Remoting MX."
.....details: "flashgateway.adapter.NoSuchServiceException: No service named is known to Flash Remoting MX.
at flashgateway.filter.AdapterFilter.invoke(AdapterFilter.java:251)
at flashgateway.filter.SecurityFilter.invoke(SecurityFilter.java:84)
at flashgateway.filter.LicenseFilter.invoke(LicenseFilter.java:58)
at flashgateway.filter.ErrorFilter.invoke(ErrorFilter.java:44)
at flashgateway.filter.LogFilter.invoke(LogFilter.java:43)
at flashgateway.filter.BatchProcessFilter.invoke(BatchProcessFilter.java:63)
at flashgateway.filter.DebugFilter.invoke(DebugFilter.java:38)
at flashgateway.filter.SerializationFilter.invoke(SerializationFilter.java:59)
at flashgateway.Gateway.invoke(Gateway.java:194)
at flashgateway.controller.GatewayServlet.service(GatewayServlet.java:56)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:226)
at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
at jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:348)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:294)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
"
.....level: "error"
.....type: "flashgateway.adapter.NoSuchServiceException"
The gateway connection is : myService = gateway_conn.getService(" this);
Its not just this example, any exmaple that uses a wsdl to connect to webservice fails. I can however connect to a webservice if I use a cfc, for ex:
googleService = gateway_conn.getService("google_search.googleService", this);
I read this article on the macromedia site:
What is says is that by default access from Macromedia Flash to web services using the Flash Gateway is disabled by default in ColdFusion MX Updater 3. I did exactly what it said in there to enable access and now I get a different error: NetConnection.Call.BadVersion error.
I don't understand why this is disabled in the first place. I have updater 3 installed and the webserver is IIS on win2k
I would appreciate your help
Regards,
Allan