android - KSOAP2 returning a error while trying to pass a path as a property -


i have webservice soap, want access android in nexus 4. when try put string path property, im getting error, soapfault: system not find specified path (or that).

this code of method:

public void uploadimage() throws ioexception, xmlpullparserexception{     string path = pathimg;     string name = nomeimg;      soapobject soap = new soapobject(name_space,"uploadimage");     soap.addproperty("pathimg", path);     soap.addproperty("nameimg", name);      soapserializationenvelope envelope = new soapserializationenvelope(             soapenvelope.ver11);     envelope.setoutputsoapobject(soap);      log.i("ngvl", "chamando uploadimage");       httptransportse httptransport = new httptransportse(url);          httptransport.call(method_upload_image, envelope);          object msg = envelope.getresponse();          log.i("ngvl", "mensagem:" + msg);   } 

this logcat:

07-17 09:22:12.971: w/system.err(4090): soapfault - faultcode: 'soapenv:server' faultstring: '\storage\emulated\0\pictures\instagram\img_20130716_194320.jpg (the system cannot find path specified)' faultactor: 'null' detail: org.kxml2.kdom.node@422e1df0 07-17 09:22:12.971: w/system.err(4090):     @ org.ksoap2.serialization.soapserializationenvelope.parsebody(unknown source) 07-17 09:22:12.971: w/system.err(4090):     @ org.ksoap2.soapenvelope.parse(unknown source) 07-17 09:22:12.971: w/system.err(4090):     @ org.ksoap2.transport.transport.parseresponse(unknown source) 07-17 09:22:12.971: w/system.err(4090):     @ org.ksoap2.transport.httptransportse.call(unknown source) 07-17 09:22:12.971: w/system.err(4090):     @ br.ufc.cloud.qnotes.ui.mainactivity.uploadimage(mainactivity.java:107) 07-17 09:22:12.971: w/system.err(4090):     @ br.ufc.cloud.qnotes.ui.mainactivity.createnote(mainactivity.java:119) 07-17 09:22:12.971: w/system.err(4090):     @ br.ufc.cloud.qnotes.ui.mainactivity$task.doinbackground(mainactivity.java:204) 07-17 09:22:12.971: w/system.err(4090):     @ br.ufc.cloud.qnotes.ui.mainactivity$task.doinbackground(mainactivity.java:1) 07-17 09:22:12.971: w/system.err(4090):     @ android.os.asynctask$2.call(asynctask.java:287) 07-17 09:22:12.971: w/system.err(4090):     @ java.util.concurrent.futuretask.run(futuretask.java:234) 07-17 09:22:12.971: w/system.err(4090):     @ android.os.asynctask$serialexecutor$1.run(asynctask.java:230) 07-17 09:22:12.971: w/system.err(4090):     @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1080) 07-17 09:22:12.971: w/system.err(4090):     @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:573) 07-17 09:22:12.971: w/system.err(4090):     @ java.lang.thread.run(thread.java:856) 


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -