title: php get SOAP header Username and Password from SOAP SERVER
body: <p>I have to create PHP, SOAP API. I need to authenticate SOAP client from SOAP Server. 
  This is the code of SOAP Client.</p>
  
  <pre><code> $client = new SoapClient("cust.wsdl",array(
  "trace"      =&gt; 1,
  "exceptions" =&gt; 0,
  "user" =&gt; 'username',
  "pass" =&gt; 'password'));
  
  $result = $client-&gt;getDetails($value1);
  </code></pre>
  
  <p>I need to capture and validate these username and password from server (SOAP SERVER) side.
  This is my SOAP Server Code</p>
  
  <pre><code>class getDb {
  //return DATA 
  }
  
  $server = new SoapServer("cust.wsdl");
  $server-&gt;setClass("getDb");
  $server-&gt;handle();
  </code></pre>
  
  <p>I need to Validate Client's Username and Password from SOAP Server.</p>
  
  <p>Anyone know how to capture SOAP Username and Password ("user" => 'username',
  "pass" => 'password') from SOAPSERVER please provide.</p>