Page 1 of 1

SmartFoxClient version 1.5.8

Posted: 20 Nov 2009, 15:08
by Marieta
with this client version, I tried sending xml messages to an java extension, but the server (and the extension) did not worked. Just changing the message type to JSON or String worked.

I checked SmartFoscClient.as for a few minutes, and I thing the problem is this line:

/** for xml version */
send(header, "xtReq", roomId, xmlmsg)


For JSON and String the messageType is "xt", not "xtReq".

Can this be fixed?

Posted: 21 Nov 2009, 09:16
by ThomasLund
Hi Marieta,

These parts of the forums are for the Unity API. It seems you are referring to the ActionScript one.

Marco frequents these forums too, so will let him move it.

BUT - the Unity one also uses xtReq for XML and not xt.

So will do some fast checks too. Might be the secret to the other bug report that got in here a few days ago.

/Thomas

Posted: 21 Nov 2009, 11:42
by ThomasLund
Just made a small test, and there is no bug. Sending with xtReq for XML and xt for the 2 others works as expected. Just FYI

/Thomas

Posted: 24 Nov 2009, 08:00
by Marieta
Thanks for your replays. My server extension is written in Java. The xml message send from client to server never gets to my handleRequst(String cmd, ActionscriptObject ao, User u, int fromRoom) function.

If the message is JSON, it is handled well by handleRequest(String cmd, JSONObject jso, User u, int fromRoom) .

You tested with Java extension or with AS3 ?

( still not working in my project )

Posted: 24 Nov 2009, 08:02
by ThomasLund
I'm using java extensions and all 3 methods.

I posted the code here:

viewtopic.php?t=6326

/Thomas