title: My Web Service doesn't work PHP nusoap
body: <p>i created a web service its working in local but not working in server. I have this error from console "Failed to load resource: the server responded with a status of 500 (Internal Server Error)".</p>
  
  <p>Here my server.php</p>
  
  <pre><code>ini_set("soap.wsdl_cache_enabled", "0");
  require_once 'lib/nusoap.php';
  $soap = new soap_server;
  $soap-&gt;configureWSDL('KisiEkle', 'http://php.hoshmand.org/');
  $soap-&gt;wsdl-&gt;schemaTargetNamespace = 'http://soapinterop.org/xsd/';
  $soap-&gt;register('xmliste', array('istek' =&gt; 'xsd:string'), array('cevap' =&gt; 'xsd:string') ,'http://soapinterop.org/');
  $soap-&gt;service(isset($HTTP_RAW_POST_DATA) ?
      $HTTP_RAW_POST_DATA : '');
  
  function xmliste($istek){
      require_once 'dbHelper.php';
      $dbh = new dbHelper();
      $dbh-&gt;begin();
      $qry = $dbh-&gt;query("Select * From kisi inner join kan on kan.id_k = kisi.kan_grup");
      $array = array();
      foreach($qry as $row){
          $array[] = array(
              "ad" =&gt; $row['ad'],
              "soyad" =&gt; $row['soyad'],
              "dogum_tarih" =&gt; $row['dogum_tarih'],
              "telefon&gt;" =&gt; $row['telefon'],
              "eposta" =&gt; $row['eposta'],
              "il" =&gt; $row['il'],
              "ilce" =&gt; $row['ilce'],
              "adres" =&gt; $row['adres'],
              "kan_grup" =&gt; $row['isim_kan'],
              "son_tarih" =&gt; $row['son_tarih'],
      );
      }
      $sonuc = json_encode($array,JSON_UNESCAPED_UNICODE);
      return $sonuc;
  </code></pre>
  
  <p>and here my client.php</p>
  
  <pre><code>require_once ('lib/nusoap.php');
  echo "lib loaded";
  $param = array('istek' =&gt; 'dfs');
  echo "param is working";
  $client = new soapclient('http://www.example.com/server.php?wsdl');
  echo "wsdl";
  $response = $client-&gt;call('xmliste', $param);
  echo "fonksiyonu çağırdı";
  if($client-&gt;fault)
  {
      echo "Hata: &lt;p&gt;Code: (".$client-&gt;faultcode."&lt;/p&gt;";
      echo "String: ".$client-&gt;faultstring;
  }
  else
  {
      echo $response;
  }
  </code></pre>
  
  <p>i tried it in local and it worked with this </p>
  
  <pre><code>$client = new soapclient('http://127.0.0.1/myproject/server.php?wsdl');
  </code></pre>
  
  <p>so i loaded files to server but its not working. "lib loaded" and "param is working" writes in client.php but not writing "wsdl" and i have this error from console "Failed to load resource: the server responded with a status of 500 (Internal Server Error)" . please help me.</p>