Android soap(ksoap2) service invalid int -
i using soap services in application getting data api
and response api includes interger value , in form "ito-207-18564", , during getting response app crashes exception
java.lang.numberformatexception: invalid int: "ito-207-18564"
i know problem response coming interserver api , before can it, app crashes, how can handle crash on side? time , help.
here code.
soapserializationenvelope envelope = new soapserializationenvelope(soapenvelope.ver11); envelope.setoutputsoapobject(request); httptransportse androidhttptransport = new httptransportse(url); try { // invoke web service androidhttptransport.call(soap_action + "api_openticket", envelope); // response soapobject response = (soapobject) envelope.bodyin; string status_return = response.getproperty(0).tostring(); string status_text = response.getproperty(1).tostring(); string ticket_reference_id = string.valueof(response.getproperty(2)); } catch (exception e) { e.printstacktrace(); }
Comments
Post a Comment