title: getting java.lang.NullPointerException when using soap
body: <p>I am soapClient to access web service as follows.</p>
  <pre><code>$con = new SoapClient('wsdl url');
  $array = array(&quot;apiRequestDetails&quot; =&gt; array(
              &quot;id&quot; =&gt; &quot;0000045399&quot;,
              &quot;mobile&quot; =&gt; &quot;9843484142&quot;,
              &quot;pin&quot; =&gt; &quot;b59c67bf196a4758191e42f76670ceba&quot;,
              &quot;refNumber&quot; =&gt; &quot;222&quot;,
              &quot;serviceCode&quot; =&gt; &quot;23&quot;,
              &quot;trxnTraceId&quot; =&gt; &quot;1&quot;,
              &quot;value&quot; =&gt; &quot;200.068879335&quot;
      
      ));
  $det = $con-&gt;__call('initiatePayment', $array);
      echo '&lt;pre&gt;';
      print_r($det);
  </code></pre>
  <p>I get following error
  Fatal error:  Uncaught SoapFault exception: [S:Server] java.lang.NullPointerException in D:\xampp\htdocs\sharepoint\connection.php:25
  Stack trace:</p>
  <h1>0 D:\xampp\htdocs\sharepoint\connection.php(25): SoapClient-&gt;__call('initiatePayment', Array)</h1>
  <h1>1 {main}</h1>
  <p>thrown in D:\xampp\htdocs\sharepoint\connection.php on line 25
  Can anyone tell me what this error is and  how can i solve it.
  thanks in advance</p>