unhandled exception - Android - Error referencing another class -
i'm giving shot @ creating class can pass in of parameters stored procedure execution of return dataset.
here call
@override protected void doinbackground(void... params) { log.i(tag, "doinbackground"); list<string> myargs = new arraylist<string>(); myargs.add("_caseid|apples"); webservicescontroller.soapactionexecutestoredprocedure("djprovider_delete", myargs); return null; }
i'm getting error @ webservicescontroller.soapactionexecutestoredprocedure
. error unhandled exceptions xmlpullparser,javaioexception.
this class i'm calling
public static void soapactionexecutestoredprocedure(string method_name,list<string> argumentpipevalue) throws xmlpullparserexception, ioexception { //make new soap object soapobject request = new soapobject(namespace, method_name); //add arguments in (string arg : argumentpipevalue) { string[] splitargs = arg.split("|"); request.addproperty(splitargs[0], splitargs[1]); } soapserializationenvelope soapenvelope = new soapserializationenvelope(soapenvelope.ver11); soapenvelope.dotnet = true; soapenvelope.setoutputsoapobject(request); httptransportse transport = new httptransportse(namespace+asmxurl); transport.call(namespace+method_name,soapenvelope); resultstring = (soapprimitive) soapenvelope.getresponse(); }
this first web service application android. i'm positive error because void has throws xmlpullparserexception, ioexception
. not know how add syntax call.
also don't understand why if remove that, transport.call(namespace+method_name,soapenvelope);
produces same error unhandled exception
any grealy appreciated!
put
@override protected void doinbackground(void... params) { log.i(tag, "doinbackground"); list<string> myargs = new arraylist<string>(); myargs.add("_caseid|apples"); try{ webservicescontroller.soapactionexecutestoredprocedure("djprovider_delete", myargs); }catch(exception e){ } return null; }
Comments
Post a Comment