title: Android Soap Request in WCF
body: <p>How to request this xml in Soap Android for WCF.
  This is from WCF Test Client</p>
  
  <pre><code>&lt;LoginNew xmlns="http://192.168.10.60/Services/"&gt;
    &lt;Username xmlns:i="http://www.w3.org/2001/XMLSchema-instance"&gt;
      &lt;Password i:nil="true" /&gt;
      &lt;Username i:nil="true" /&gt;
      &lt;VersionCode&gt;0&lt;/VersionCode&gt;
    &lt;/Username&gt;
  &lt;/LoginNew&gt;
  &lt;/s:Body&gt;
  </code></pre>
  
  <p>i tried this already but no hope . its return null in WCF</p>
  
  <pre><code>    SoapObject request = new SoapObject(NAMESPACE, "LoginNew");
      SoapObject UsernamePassword = new SoapObject();
      UsernamePassword.addProperty("Username", "arlind");
      UsernamePassword.addProperty("Password", "arlind");
      request.addSoapObject(UsernamePassword);
  
      &lt;s:Body&gt;
  </code></pre>
  
  <p>My Wcf code: </p>
  
  <pre><code>    [OperationContract]
      [WebInvoke(Method = "POST",
                 RequestFormat = WebMessageFormat.Json,
                 ResponseFormat = WebMessageFormat.Json,
                 BodyStyle = WebMessageBodyStyle.Bare,
                 UriTemplate = "/LoginNew")]
      string LoginNew(UsernamePassword Username);
  
  
  
      public class UsernamePassword
      {
      [DataMember]
      public string Username { get; set; }
      [DataMember]
      public string Password { get; set; }
      [DataMember]
      public int VersionCode { get; set; }
  
      }
  </code></pre>