title: How to pass Array Parameters in Soap Request
body: <p>Issue get due to could not pass correct <code>String[]</code> parameters in <code>Soap</code> Request as require in .Net Webservice</p>
  
  <pre><code>public void SoapKsop2_Api_Call(){
  
      SoapObject request = new SoapObject(namespace, methodName);    
      request.addProperty("ProcName", "Mr.Abc");
  
      String[] sqlPar =  new String[2];
      sqlPar[0] = "@FLAG";
      sqlPar[1] = "@RDeviNo";
  
      String[] sqlVal =  new String[2];
      sqlVal[0] = "RDevice";
      sqlVal[1]  = "123546";
  
      PropertyInfo PrfsqlParaName = getProperty(namespace,"sqlParaName",sqlPar);
      PropertyInfo sqlParaValue = getProperty(namespace,"sqlParaValue",sqlVal);
  
      request.addProperty(PrfsqlParaName);
      request.addProperty(sqlParaValue);
  
      int TimeOutInSeconds = 1000;
  
      SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
      envelope.dotNet = true;
  
      envelope.setOutputSoapObject(request);
      HttpTransportSE androidHttpTransport = new HttpTransportSE(url,TimeOutInSeconds * 1000);
  
  
      androidHttpTransport.call(soapAction, envelope);
  
      Log.d("test", "request: " + androidHttpTransport.requestDump);
      Log.d("test", "response: " + androidHttpTransport.responseDump);
  
      SoapObject result = (SoapObject)envelope.getResponse();
      String result  = result.getProperty(0).toString();
  
  }
  
  private PropertyInfo getProperty(String NAMESPACE,String name, String[] val) {
  
      PropertyInfo info = new PropertyInfo();
      info.name = name;
      info.namespace = NAMESPACE;
  
      //VECTOR_CLASS
      info.type = PropertyInfo.VECTOR_CLASS;
  
  
      Vector&lt;String&gt; vct = new Vector&lt;String&gt;();
      for (int i = 0; i &lt; val.length; i++)
          vct.add(val[i]);
      info.setValue(vct);
  
      return info;
  }
  </code></pre>
  
  <p>Error: </p>
  
  <pre><code>SoapFault - faultcode: 'soap:Server' faultstring: 'Server was unable to process request. ---&gt; System.Web.Services.Protocols.SoapException: Server was unable to process request. ---&gt; System.NullReferenceException: Object reference not set to an instance of an object.
      at DmlCall.Save_Edit_Delete(String ProcName, String[] sqlParaName, String[] sqlParaValue) in Web Service line 36
      --- End of inner exception stack trace ---' faultactor: 'null' detail: org.kxml2.kdom.Node@16ba69a
  
  
  Soap Object
  
  &lt;Envelope xmlns="schemas.xmlsoap.org/soap/envelope/"&gt;; 
  &lt;Body&gt;
   &lt;Save_Edit_Delete xmlns="CnnRestro"&gt;
   &lt;ProcName&gt;[string?]&lt;/ProcName&gt;
   &lt;!-- Optional --&gt; 
   &lt;sqlParaName&gt; &lt;string&gt;[string?]&lt;/string&gt; &lt;/sqlParaName&gt;
   &lt;!-- Optional --&gt;
   &lt;sqlParaValue&gt; &lt;string&gt;[string?]&lt;/string&gt; &lt;/sqlParaValue&gt; 
  &lt;/Save_Edit_Delete&gt;
   &lt;/Body&gt; 
  &lt;/Envelope&gt; 
  </code></pre>