title: Ksoap calling Webservice - Problem with SoapObject
body: <p>I am trying to call a <code>WSDL Webservice</code> via <strong>Ksoap</strong> for my Android App. When I use <code>SoapPrimitive</code>, it works and I get the following String:</p>
  
  <pre><code>{"INGREDIENTS": [
      {
          "TEXT": "ohne Schweinefleisch",
          "KEY": "*"
      },
      {
          "TEXT": "mit Alkohol",
          "KEY": "11"
      },
  </code></pre>
  
  <p>......</p>
  
  <p>and so on.. I would like to have only the "Text" in a <code>ListView</code>, but I don't know how I can realize that with SoapPrimitive.</p>
  
  <p>And when I use SoapObject, I only get the following Exeption:</p>
  
  <pre><code>"java.lang.ClassCastException: org.ksoap2.serialization.SoapPrimitive cannot be cast to org.ksoap2.serialization.SoapObject"
  </code></pre>
  
  <p>Here is my Code:</p>
  
  <pre><code> try {
  
          SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
  
          SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
          envelope.dotNet=true;
          envelope.setOutputSoapObject(request);
  
          HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);
          androidHttpTransport.debug = true;
          androidHttpTransport.call(SOAP_ACTION, envelope);
  
          SoapObject response = (SoapObject)envelope.getResponse();
          }
  </code></pre>
  
  <p>What's wrong? I looked since hours in the web, but i didn't find an answer.</p>