<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.soapheader.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'tr',
  ),
  'this' => 
  array (
    0 => 'soapheader.construct.php',
    1 => 'SoapHeader::__construct',
    2 => 'SoapHeader constructor',
  ),
  'up' => 
  array (
    0 => 'class.soapheader.php',
    1 => 'SoapHeader',
  ),
  'prev' => 
  array (
    0 => 'class.soapheader.php',
    1 => 'SoapHeader',
  ),
  'next' => 
  array (
    0 => 'class.soapparam.php',
    1 => 'SoapParam',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/soap/soapheader/construct.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="soapheader.construct" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">SoapHeader::__construct</h1>
  <p class="verinfo">(PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">SoapHeader::__construct</span> &mdash; <span class="dc-title">SoapHeader constructor</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-soapheader.construct-description">
  <h3 class="title">Açıklama</h3>
  <div class="constructorsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>SoapHeader::__construct</strong></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$namespace</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$name</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.mixed.php" class="type mixed">mixed</a></span> <code class="parameter">$data</code><span class="initializer"> = ?</span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> <code class="parameter">$mustunderstand</code><span class="initializer"> = ?</span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$actor</code><span class="initializer"> = ?</span></span><br>)</div>

  <p class="para rdfs-comment">
   Constructs a new SoapHeader object.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-soapheader.construct-parameters">
  <h3 class="title">Bağımsız Değişkenler</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">namespace</code></dt>
     <dd>
      <p class="para">
       The namespace of the SOAP header element.
      </p>
     </dd>
    
    
     <dt><code class="parameter">name</code></dt>
     <dd>
      <p class="para">
       The name of the SoapHeader object.
      </p>
     </dd>
    
    
     <dt><code class="parameter">data</code></dt>
     <dd>
      <p class="para">
       A SOAP header&#039;s content. It can be a PHP value or a
       <span class="classname"><a href="class.soapvar.php" class="classname">SoapVar</a></span> object.
      </p>
     </dd>
    
    
     <dt><code class="parameter">mustUnderstand</code></dt>
     <dd>
      <p class="para">
       Value of the <code class="literal">mustUnderstand</code> attribute of the SOAP
       header element.
      </p>
     </dd>
    
    
     <dt><code class="parameter">actor</code></dt>
     <dd>
      <p class="para">
       Value of the <code class="literal">actor</code> attribute of the SOAP header
       element.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-soapheader.construct-examples">
  <h3 class="title">Örnekler</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Örnek 1 <span class="function"><strong>SoapHeader::__construct()</strong></span> example</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$client </span><span style="color: #007700">= new </span><span style="color: #0000BB">SoapClient</span><span style="color: #007700">(</span><span style="color: #0000BB">null</span><span style="color: #007700">, array(</span><span style="color: #DD0000">'location' </span><span style="color: #007700">=&gt; </span><span style="color: #DD0000">"http://localhost/soap.php"</span><span style="color: #007700">,<br />                                     </span><span style="color: #DD0000">'uri'      </span><span style="color: #007700">=&gt; </span><span style="color: #DD0000">"http://test-uri/"</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">$client</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">__soapCall</span><span style="color: #007700">(</span><span style="color: #DD0000">"echoVoid"</span><span style="color: #007700">, </span><span style="color: #0000BB">null</span><span style="color: #007700">, </span><span style="color: #0000BB">null</span><span style="color: #007700">,<br />                new </span><span style="color: #0000BB">SoapHeader</span><span style="color: #007700">(</span><span style="color: #DD0000">'http://soapinterop.org/echoheader/'</span><span style="color: #007700">,<br />                               </span><span style="color: #DD0000">'echoMeStringRequest'</span><span style="color: #007700">,<br />                               </span><span style="color: #DD0000">'hello world'</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-soapheader.construct-seealso">
  <h3 class="title">Ayrıca Bakınız</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="methodname"><a href="soapclient.soapcall.php" class="methodname" rel="rdfs-seeAlso">SoapClient::__soapCall()</a> - Calls a SOAP function</span></li>
    <li><span class="methodname"><a href="soapvar.construct.php" class="methodname" rel="rdfs-seeAlso">SoapVar::__construct()</a> - SoapVar constructor</span></li>
    <li><span class="methodname"><a href="soapparam.construct.php" class="methodname" rel="rdfs-seeAlso">SoapParam::__construct()</a> - SoapParam constructor</span></li>
    <li><span class="methodname"><a href="soapserver.addsoapheader.php" class="methodname" rel="rdfs-seeAlso">SoapServer::addSoapHeader()</a> - Add a SOAP header to the response</span></li>
   </ul>
  </p>
 </div>


</div><?php manual_footer($setup); ?>