all groups > macromedia flash flashcom > june 2006 >
You're in the

macromedia flash flashcom

group:

FMS to WS... OK, but WS to FMS?


FMS to WS... OK, but WS to FMS? TheBimmer
6/19/2006 11:49:41 AM
macromedia flash flashcom:
Hello again,

here is the situation, i have a web service which will be invoked by an
external application. the call will be associated with a two string parameters.

Now, when the web method is invoked, i want to connect to a specific instance
on FMS (using param 1), and send (param 2) to all connected users of that
instance.

i had this idea of having a virtual client working on the same machine that
holds the Web Service, and let it connect to FMS. but this won't work as there
is no connection between the swf and the service, the same problem occurs, web
service cant invoke a function in the swf.

i thought about saving the parameters on files, and reading them from flash,
but this is stupid!

any ideas?
Re: FMS to WS... OK, but WS to FMS? JayCharles
6/20/2006 12:00:00 AM
My first thought would be to have the FMS application connect to the service
and listen for messages.

With a multi-instance application it might make sense to buid a separate app
to handle the connection to the service, and let that app use the FMS admin
service to pass your webservice results to the appropriate FMS app instance.
Re: FMS to WS... OK, but WS to FMS? TheBimmer
6/20/2006 12:00:00 AM
This is logical, but when you reach implementation, then we will have some
problems.

The problem here is that I will have to use synchronous calls to a web method
from the FMS, or from an application that resides at the FMS side. Now, the
best shoot I have using this methodology is saving parameters into separate
files, and let the FMS listener get the content of the files each time it seeks
messages, and then delete them such as the email methodology. (Any recommended
enhancements to this workflow?)

This can be done, but I really believe that there are better techniques to be
used! Don't you think? (Saving into separate files idea is implemented to avoid
any File system error which may occur).

For example, can I communicate with FMS from other environments rather than
Flash? What is the connection string needed, and what is the format? Perhaps I
can post an event to the FMS to do me the work; this will save a lot of time,
and will make the process more reliable.

I read about IRC, and that it could be connected to from any application, but
it needs several parameters, and that?s it!


AddThis Social Bookmark Button