Hello everyone,

I have developed a web service application in j2me, which is working fine in emulator but when i deploy it in nokia handset (nokia 110) it shows me random errors: java.io.IOException 53 error in http operation, java.io.IOException 28 error in http operation, java.io.IOException 52 error in http operation etc. Also when tested with (nokia c101) it shows xml parser exception. here is my attached code:

private final String SERVICEURL = "http://www.friends2support.org/Friends2SupportService.asmx";
private final String NAMESPACE = "http://friendstosupport.org/";
private final String SOAPACTIONSTATES = "http://friendstosupport.org/GetStates";

public void getStateName() {
try {
SoapObject rpc = new SoapObject(NAMESPACE, STATEMETHOD);
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.bodyOut = rpc;
envelope.dotNet = true;
envelope.encodingStyle = SoapSerializationEnvelope.XSD;
HttpTransport ht = new HttpTransport(SERVICEURL);
ht.debug = true;
ht.setXmlVersionTag("<?xml version=\"1.0\" encoding=\"utf-8\"?>");
ht.call(SOAPACTIONSTATES, envelope);
SoapObject response1 = (SoapObject) envelope.bodyIn;
SoapObject root1 = (SoapObject) response1.getProperty(0);
SoapObject s_deals1 = (SoapObject) root1.getProperty("NewDataSet");
String[] statename = new String[s_deals1.getPropertyCount()];
String[] stateid = new String[s_deals1.getPropertyCount()];
for (int i = 0; i < s_deals1.getPropertyCount(); i++){
SoapObject ss1 = (SoapObject) s_deals1.getProperty(i);
statename[i] = ss1.getProperty("state").toString().trim();
stateid[i] = ss1.getProperty("stateId").toString().trim();
}
ascendingStateOrder(statename, stateid);
} catch (Exception e) {
e.printStackTrace();
}
}