title: (php) calling wsdl method using soapclient with parameter in parameter name
body: <p>Hi i'm using PHP's soapclient function to call a soap webservices (with wdsl).</p>
  
  <p>I know how to pass parameters to a method, but the webservice i'm using is expecting parameters in the parameter name (not sure how to call this).</p>
  
  <p>This is what the webservice is expecting when using parameters:</p>
  
  <pre><code>&lt;searchCriteria&gt;
      &lt;Name MatchType=”MatchBeginning”&gt;Exmaple Company&lt;/Name&gt;
      &lt;Address&gt;
          &lt;Street&gt;Example Street&lt;/Street&gt;
      &lt;/Address&gt;
  &lt;/searchCriteria&gt;
  </code></pre>
  
  <p>It's about this part in the Name parameter: MatchType=”MatchBeginning”</p>
  
  <p>This is how i'm calling the webservice:</p>
  
  <pre><code>&lt;?php
      $client = @new \SoapClient($url,array(
              'exceptions' =&gt; 1,
              'login' =&gt; '****',
              'password' =&gt; '****',
              'trace' =&gt; 1,
      ));
  
      $parameter = array(
          "countries" =&gt; array(
              "CountryCode" =&gt; "NL",
          ),
          "searchCriteria" =&gt; array(
              "Name" =&gt; "value"
          ),
      );
  </code></pre>
  
  <p>Can someone tell me how to add the parameter using the above method?
  Much appreciated.</p>
  
  <p>BTW i'm trying to consume a webservice from Creditsafe. Maybe someone will find this question by adding this info.</p>