title: Cannot Serialize error on Android
body: <p>I need help. I'm trying pass parameters to webservice and it shows me an error:
  <strong>CANNOT SERIALIZE content_of_userText</strong> . 
  My code is:</p>
  
  <pre><code>if (button.getId() == R.id.loginButton) {
  
             //Modelo el request
             SoapObject request = new SoapObject(namespace, Metodo);
  
             //Paràmetres
             request.addProperty("correu", userText.getText());
             request.addProperty("pass", passText.getText());
  
             //Modelo el Sobre
             SoapSerializationEnvelope sobre = new SoapSerializationEnvelope(SoapEnvelope.VER11);
             sobre.dotNet = true;
             sobre.setOutputSoapObject(request);
  
             //Modelo el transporte
             HttpTransportSE transporte = new HttpTransportSE(url);
  
             try {       
                 //Llamada
                 transporte.call(accionSoap, sobre);
  
                 //Resultado
                 SoapObject resultado = (SoapObject) sobre.getResponse();
  
                 Toast.makeText(this, resultado.toString(), Toast.LENGTH_SHORT).show();
  
             } 
             catch (Exception e)
             {
                 Toast.makeText(this, e.getMessage(), Toast.LENGTH_SHORT).show();
             }
  </code></pre>
  
  <p>Thanks!!</p>
  
  <p>EDIT: I try this:</p>
  
  <p>request.addProperty("correu", userText.getText().toString());<br>
  request.addProperty("pass", passText.getText().toString());</p>
  
  <p>and the exception now is:</p>
  
  <p><strong>org.ksoap2.serialization.SoapPrimitive</strong></p>
  
  <p>EDIT2: It works! I change this:</p>
  
  <pre><code>SoapObject resultado = (SoapObject) sobre.getResponse();
  </code></pre>
  
  <p>for this:</p>
  
  <pre><code>String resultado = sobre.getResponse().toString();
  </code></pre>