SmartFoxClient version 1.5.8

Post here all your questions related with SmartFoxServer .Net/Unity3D API

Moderators: Lapo, Bax

Marieta
Posts: 2
Joined: 20 Nov 2009, 15:01

SmartFoxClient version 1.5.8

Postby Marieta » 20 Nov 2009, 15:08

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?
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Postby ThomasLund » 21 Nov 2009, 09:16

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
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Postby ThomasLund » 21 Nov 2009, 11:42

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
Marieta
Posts: 2
Joined: 20 Nov 2009, 15:01

Postby Marieta » 24 Nov 2009, 08:00

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 )
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Postby ThomasLund » 24 Nov 2009, 08:02

I'm using java extensions and all 3 methods.

I posted the code here:

viewtopic.php?t=6326

/Thomas

Return to “.Net / Unity3D API”

Who is online

Users browsing this forum: No registered users and 3 guests