Advertisement

10.12.2008 at 02:46AM PDT, ID: 23807494 | Points: 500
[x]
Attachment Details

Flex and ASP.NET using Webervices and RTMP using Fluorine?

Asked by westerlike in Adobe Flex, Programming for ASP.NET, Web Services Description Language

Hi,

Here is the total scenario (just so that it is clear what I am trying to accomplish):

I have an ASP.NET application which has a webservice integrated into it. I also have a Flex component which uses this webservice to retrieve information about  a chat room. I want to be able to create a multi-room multi-person chat with specific operations being executed on the backend on each action. This is how I figured it would work:
1/ The user loads the Flash component on the website. It then calls a webservice which retrieves the room data
2/ The webservice also sends out a Message informing other users that the person has entered the room
3/ The Flex component signs up as a consumer to the RTMP feed
4/ When the user enters some text then it is sent as a webservice parameter to the server. The server then processes this request and sends out a Message to the RTMP

In theory this is nice and all but here's where it gets tricky:
a) The web services ONLY work if I am running them locally once I deploy to the website I get:
"faultDetail      "Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: http://www.mywebsite.com/ProjectAlfa/Services/RoomService.asmx"]. "      
(I also tried adding the crossdomain.xml to my webroot with a * as the allow-from domain)

b) The RTMP feed is NOT coming back at all, even when it is local (I used the modified DateFeed example of Fluorine without the thread

So if anyone has an idea how to resolve my issue please let me know. I also tried weborb but couldn't find a good Consumer/Producer example WITHOUT using the MSMQ, most of their examples didn't have full source code, just examples without actual project files.

Miklos
Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
MessageBroker msgBroker = MessageBroker.GetMessageBroker(null);
            DateTime now = DateTime.Now;
            AsyncMessage msg = new AsyncMessage();
            msg.destination = "datefeed";
            msg.clientId = Guid.NewGuid().ToString("D");
            msg.messageId = Guid.NewGuid().ToString("D");
            msg.timestamp = Environment.TickCount;
            
            Hashtable body = new Hashtable();
            body.Add("userId", "daemon");
            body.Add("msg", "RECEIVED=>" + now.ToString() + ": "+Message);
            msg.body = body;
            msgBroker.RouteMessage(msg);
 
 
 
Loading Advertisement...
20081112-EE-VQP-42 - Hierarchy / EE_QW_2_20070628