Note that there are some explanatory texts on larger screens.

plurals
  1. POKSOAP2 returning a error while trying to pass a path as a property
    text
    copied!<p>I have a webservice SOAP, that i want to access by android in my Nexus 4. When i try to put a String path like a property, im getting a error, soapfault: The system could not find the specified path (or something like that).</p> <p>This is the code of the method:</p> <pre><code>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); } </code></pre> <p>This is the LogCat:</p> <pre><code>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 the path specified)' faultactor: 'null' detail: org.kxml2.kdom.Node@422e1df0 07-17 09:22:12.971: W/System.err(4090): at org.ksoap2.serialization.SoapSerializationEnvelope.parseBody(Unknown Source) 07-17 09:22:12.971: W/System.err(4090): at org.ksoap2.SoapEnvelope.parse(Unknown Source) 07-17 09:22:12.971: W/System.err(4090): at org.ksoap2.transport.Transport.parseResponse(Unknown Source) 07-17 09:22:12.971: W/System.err(4090): at org.ksoap2.transport.HttpTransportSE.call(Unknown Source) 07-17 09:22:12.971: W/System.err(4090): at br.ufc.cloud.qnotes.ui.MainActivity.uploadImage(MainActivity.java:107) 07-17 09:22:12.971: W/System.err(4090): at br.ufc.cloud.qnotes.ui.MainActivity.createNote(MainActivity.java:119) 07-17 09:22:12.971: W/System.err(4090): at br.ufc.cloud.qnotes.ui.MainActivity$Task.doInBackground(MainActivity.java:204) 07-17 09:22:12.971: W/System.err(4090): at br.ufc.cloud.qnotes.ui.MainActivity$Task.doInBackground(MainActivity.java:1) 07-17 09:22:12.971: W/System.err(4090): at android.os.AsyncTask$2.call(AsyncTask.java:287) 07-17 09:22:12.971: W/System.err(4090): at java.util.concurrent.FutureTask.run(FutureTask.java:234) 07-17 09:22:12.971: W/System.err(4090): at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230) 07-17 09:22:12.971: W/System.err(4090): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080) 07-17 09:22:12.971: W/System.err(4090): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573) 07-17 09:22:12.971: W/System.err(4090): at java.lang.Thread.run(Thread.java:856) </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload