title: Problem passing parameters with Android WebService Client and PHP server
body: <p>I have the following code which calls a PHP webservice. The code connects to the service, but the paramters are not passed well. The method is just returning the parameters and for the following code it returns "mm" (basicly it returns the first letter of the first parameter twice).</p>
  
  <pre><code>    String SOAP_ACTION = "urn:server#userAuth"; 
      String METHOD_NAME = "userAuth";
  
      SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
  
      PropertyInfo p1 = new PropertyInfo();
      p1.type = PropertyInfo.STRING_CLASS;
      p1.setName("usr");
      p1.setValue("myuser");
      p1.setNamespace(NAMESPACE);
      request.addProperty(p1);
  
      PropertyInfo p2 = new PropertyInfo();
      p2.type = PropertyInfo.STRING_CLASS;
      p2.setName("pass");
      p2.setValue("xxxxxxxxxxx");
      p2.setNamespace(NAMESPACE);
      request.addProperty(p2);      
  
      SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
  
      envelope.setOutputSoapObject(request);
      HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);
      androidHttpTransport.call(SOAP_ACTION, envelope);
  
      Object result = (Object)envelope.getResponse();
      return result.toString();
  </code></pre>
  
  <p>And here is the php server code...</p>
  
  <pre><code>$server = new nusoap_server;
  $server-&gt;configureWSDL('server', 'urn:server');
  $server-&gt;wsdl-&gt;schemaTargetNamespace = 'urn:server';
  $server-&gt;register('userAuth',
              array('usr' =&gt; 'xsd:string', 'pass' =&gt; 'xsd:string'),
              array('return' =&gt; 'xsd:string'),
              'urn:server',
              'urn:server#userAuth');
  
  function userAuth($value){
  
      $a=$value['usr'].$value['pass'];
  
          return $a;    
  }
  
  $HTTP_RAW_POST_DATA = isset($HTTP_RAW_POST_DATA) ? $HTTP_RAW_POST_DATA : '';
  
  $server-&gt;service($HTTP_RAW_POST_DATA);
  </code></pre>