j2me client - c++ server connection

Started by
1 comment, last by shareme 19 years, 8 months ago
hi all, there is this client code in j2me, it connects the tomcat server well and sends the number i input and gets some url adress from the server.. however, i have another server coded in C++ and i want my cellphone(j2me client) to connect to it and do the same -sending the number and getting the url-. the problem is it always sends the number i input, but it SOMETIMES gets the url address and 4 of 5 times say it does not get the url information. it is so ridiculous to me that this works sometimes.. what could be the problem here sending info sometimes from c++ server to j2me client? and how can it be solved? thanks..
Advertisement
You need to supply more info.

Are you using HTTP? I assume so seeing as this is the only protocol guaranteed to work on MIDP1.0

Have you used a network analyser to see exactly what occurs in the process?

Maybe you would be better off changing your C++ server app to a CGI program rather than writing your own web server, which is a nontrivial task.

I would personally use a network analyser and dump the session of Tomcat, dump the session of your custom HTTP server (if that's what it is), and compare them.

Mark
how is your c++ code implemented?

are we talking a simple xml-rpc ro soap server process?

This topic is closed to new replies.

Advertisement