|
|
 |
FN-FORUM: XmlSocket problems in flex
date posted 20th November 2007 22:16
Hi,
I'm in the process of building a client application in flex that will
connect to a Java socket server. I have the server side of things setup
so that it receives the message from the client and then just sends out
a simple message back. Ultimately it will receive an XML message which
will contain an action to be performed and parameters for that action.
The server will then execute the action and send the results back to the
client...
At the moment however I can't get the xmlSocket in flex to send out the
data to the server. I have the following code however the server doesn't
receive anything.
socket = new XMLSocket();
socket.connect(hostName, port);
socket.send("test\0");
I have tested the server with putty and everything works as expected.
The server details are shown below.
host: 80.45.70.164
port: 8888
The flex application connects to the server fine because the server
displays a message to say that a new client has connected however no
data is received (i have monitored network traffic with ethereal and
nothing goes out). If anyone has any clues as to why i'd love to know!
Thanks in advance,
James
|
 |
|