title: PHP- SOAP Client method call optional parameters
body: <p>I want to connect with wsdl interface, and then send request to specific method with specific parameters (i don't want to send some optional parameters)</p>
  
  <p>you can find the expected request at image below
  <a href="https://i.stack.imgur.com/lgKdv.png" rel="nofollow noreferrer">request image</a></p>
  
  <p>and you can find my request that i sent below
  <a href="https://i.stack.imgur.com/sSTYU.png" rel="nofollow noreferrer">my request</a></p>
  
  <p>and this is my code in PHP to send that request:</p>
  
  <pre><code>$response = $client-&gt;__soapCall("subscribeToService", ['clientcredential' =&gt; ['username' =&gt; 'xxx', 'password' =&gt; 'xxx'], "subscriberid" =&gt; "xxxx", "serviceid"    =&gt; "xxx"]);
  </code></pre>
  
  <p>the response i get is -1 and that's wrong, how can i send the same request they expect without optional parameters? </p>
  
  <p>thanks in advance</p>