Hi every body,
i have a very serious problem here, i use http connections to call a servlet from a midlet and it works just fine on the emulator. i deployed the midlet and when i run it it requests to select the access point for the connection, so, i choose 'vodafone WAP', the problem is, this is what i get:
<?xml version='1.0' ?><!DOCTYPE html PUBLIC '-//WAPFORUM//DTD XHTML Mobile 1.0// EN"http://www.wapforum.org/DTD/xhtml-mob
by the way i use j2me, nokia 6630, my network operator is 'vodafone' and this is the code i use to open the http connection:
StringBuffer buffer;
try {
StreamConnection connection = (StreamConnection) Connector.open("http://10.1.33.5:8084/Web_Tier/MobHttpTransceiver");
InputStream in = connection.openInputStream();
buffer = new StringBuffer();
int ch;
while (( ch = in.read()) != -1)
{
if (ch != '\n')
buffer.append((char) ch);
else{
}
get_textBox1().setString(buffer.toString());
}
} catch (Exception ex) {
//get_textBox1().setString("exception: "+ex.getClass());
}
any one who can help ?!

Reply With Quote

