title: PHP Soapclient returns object has no property
body: <p>When sending a request from my PHP soapclient as described below, I get: </p>
  
  <pre><code>[getInterestAndExchangeRates failed: Please check inparameters in Xxx]. 
  </code></pre>
  
  <p>I suspect that it is the [$response] line that has wrong syntax. More specific the [$searchRequestParameters]. I have checked that all the content in the array is in the correct order.</p>
  
  <p><strong>Question:</strong></p>
  
  <p>Is there something wrong with below code syntax?</p>
  
  <p>I have followed following instructions:</p>
  
  <p><a href="https://swea.riksbank.se/sweaWS/docs/api/call/getInterestAndExchangeRates.htm" rel="nofollow noreferrer">https://swea.riksbank.se/sweaWS/docs/api/call/getInterestAndExchangeRates.htm</a></p>
  
  <pre><code>&lt;?php
  
  /**
   * A soapclient request to Swedish Central bank, API.
   */
  
  $client = new SoapClient("https://swea.riksbank.se/sweaWS/wsdl/sweaWS_ssl.wsdl");
  
  $searchGroupSeries = array(
      "groupid"  =&gt; 2,
      "seriesid" =&gt; "SECBREPOEFF"
  );
  
  
  $searchRequestParameters = array (
      "aggregateMethod"   =&gt; "W",
      "avg"               =&gt; true,
      "datefrom"          =&gt; "2018-01-01",
      "dateto"            =&gt; "2019-01-01",
      "languageid"        =&gt; "en",
      "max"               =&gt; true,
      "min"               =&gt; false,
      "searchGroupSeries" =&gt; $searchGroupSeries,
      "ultimo"            =&gt; false
  );
  
  // Test 1 (pointing out above array, does not work):    
  $response = $client-&gt;__soapCall("getInterestAndExchangeRates", $searchRequestParameters);
  
  // Test 2 (wrap in above array inside another array, does not work):
  // $response = $client-&gt;__soapCall('getInterestAndExchangeRates', array('searchRequestParameters' =&gt; $searchRequestParameters));
  
  var_dump($response);
  </code></pre>
  
  <p><strong>Error:</strong></p>
  
  <pre><code>PHP Fatal error:  Uncaught SoapFault exception: [soap:Server] getInterestAndExchangeRates failed: Please check inparameters in [path]_(does_not_work).php:22
  Stack trace:
  #0 [path]_(does_not_work).php(22): SoapClient-&gt;__soapCall('getInterestAndE...', Array)
  #1 {main}
    thrown in [path]_(does_not_work).php on line 22
  </code></pre>