title: Php soap data send error
body: <p>When sending data to the SomeMethod() method, the 1 excess parameter returns as an error.</p>
  
  <p>My Code: </p>
  
  <pre><code>$client = new SoapClient('site_url/?wsdl');
  $client-&gt;soap_defencoding = 'UTF-8';
  $loginparam = array('userName'=&gt;'name','password'=&gt;'pass','trace' =&gt; 1, 'exceptions' =&gt; 0);   
  
  
  $session = $client-&gt;OturumAc($loginparam);
  $SoapIcHeader = new SoapHeader("http://sanayi.gov.tr","TokenId",$session-&gt;OturumAcResult);
  $client-&gt;__setSoapHeaders($SoapIcHeader);
  $OturumUzat = $client-&gt;OturumDogrulaVeUzat($session -&gt;OturumAcResult);
  
  $param["BosAgirligi"] = "20";
  $param["CalismaBasinci"] = "5";
  $param["DoluAgirligi"] = "1";
  $param["SonMuayeneTarihi"] = "2017-08-01 10:19:04";
  $param["SonMuayeneYapanFirmaMersisNo"] = "123456789";
  $param["SuKapasitesi"] = "1";
  $param["TestBasinci"] = "10";
  $param["DolumBasinci"] = "15";
  $param["EtKalinligi"] = "3";
  $param["ImalatTarihi"] = "2017-08-01 10:19:04";
  $param["SeriNo"] = "123";
  $param["TescilEdenTesisId"] = "31fd684c-f97d-48c1-a7fb-60f30f536d8d";
  $param["UreticiId"] = "31fd684c-f97d-48c1-a7fb-60f30f536d8d";
  // $param["UygunlukIsareti"] = "1";
  
  $date   = date('d/m/Y');
  $id     ="2ad9a9a9-adb9-4fb8-8fae-01e84aa72343";
  
  try
  { 
  
  
    $sonuc = $client-&gt;TupTescil($id,$date,$param);
    print_r($sonuc);
  
  }
  catch (Exception $e)
  {
     echo "Error ! ";
     echo $e -&gt; getMessage ();
  } 
  </code></pre>
  
  <p><strong>Return Error</strong>
  Error ! The formatter threw an exception while trying to deserialize the message: Error in deserializing body of request message for operation 'TupTescil'. End element 'Body' from namespace '<a href="http://schemas.xmlsoap.org/soap/envelope/" rel="nofollow noreferrer">http://schemas.xmlsoap.org/soap/envelope/</a>' expected. Found element 'param1' from namespace ''. Line 2, position 281.</p>
  
  <p><strong>This example works with C#</strong></p>
  
  <pre><code>                Guid tupKimligi = new Guid("07FAF194-4E80-4359-95D9-011CA1F5A1D4"); 
  
              DateTime islemSaati = DateTime.Today;
  
              TupTescilBilgisi tescilBilgileri = new TupTescilBilgisi()  
              {
                  BosAgirligi = 1,
                  CalismaBasinci = 1,
                  DoluAgirligi = 1,
                  SonMuayeneTarihi = DateTime.Today,
                  SonMuayeneYapanFirmaMersisNo = "123456789",
                  SuKapasitesi = 1,
                  TestBasinci = 1,
                  DolumBasinci = 1,
                  EtKalinligi = 1,
                  ImalatTarihi = DateTime.Today,
                  SeriNo = "123",
                  TescilEdenTesisId = tesisId,
                  UreticiId = ureticiId,
                  UygunlukIsareti = TupUygunlukIsareti.Pi
  
              };
  
  
              Tup tescilSonuc = tsc.TupTescil(tupKimligi, DateTime.Today, tescilBilgileri);
  </code></pre>
  
  <p><strong>You can also look at the wsdl structure here</strong></p>
  
  <p><a href="http://servis.sanayi.gov.tr:23001/TTSService/?wsdl" rel="nofollow noreferrer">enter link description here</a></p>
  
  <p>Thanks for your help</p>