Android soap(ksoap2) service invalid int -


i using soap services in application getting data api

https://www.interserver.net/

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();     } 

debug report enter image description here


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -

c# SetCompatibleTextRenderingDefault must be called before the first -