title: KSOAP2 webservice ilon100 smartserver
body: <p>I'm trying to use Android to call echelon smartserver's web service.
  I need to replace jax-ws which is not compatibile with Android. I decided to use KSOAP2.</p>
  
  <p>I tried this way but without succeed:</p>
  
  <pre><code>public class ConnectTest extends Activity implements OnClickListener {
      Button SoapButton;
  private static final String NAMESPACE = "http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/wsdl/";
      private static String URL = "http://192.168.100.247/WSDL/v4.0/iLON100.wsdl";
      private static final String METHOD_NAME = "List";
      private static final String SOAP_ACTION = "http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/wsdl/List";
  
  SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
  PropertyInfo propInfo = new PropertyInfo();
  propInfo.name = "iLonItem";
  request.addProperty("&lt;xSelect&gt;//Item[@xsi:type=\"Item_Cfg\"]&lt;/xSelect&gt;",propInfo);
  SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(
                      SoapEnvelope.VER11);
  HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);
  try 
              {
                  androidHttpTransport.call(SOAP_ACTION, envelope);
                  SoapPrimitive resultsRequestSOAP = (SoapPrimitive) envelope
                          .getResponse();
                  SoapResponse = resultsRequestSOAP.toString();
                  System.out.println("SOAP" + SoapResponse);
  
              } catch (Exception e) 
              {
  
                  Log.e("Error", "pb IO", e);
                  SoapResponse = "error connection";
              }
  
              return SoapResponse;
  </code></pre>
  
  <p>It ends up with following console error:</p>
  
  <pre><code>java.lang.RuntimeException: Cannot serialize: iLonItem : (not set)
  </code></pre>
  
  <p>What I should do to correct send below message using SOAP? Of course using KSOAP2.</p>
  
  <pre><code>   &lt;List xmlns="http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/message/"&gt;
  &lt;iLonItem&gt;
  &lt;xSelect&gt;//Item[@xsi:type=\"Item_Cfg\"]&lt;/xSelect&gt;
  &lt;/iLonItem&gt;
  &lt;/List&gt;
  </code></pre>
  
  <p>Please help.
  Thanks!</p>