title: What is a good way to pass authentication info to API methods in PHP NuSoap?
body: <p>I am using NuSoap to implement an api server. The public SOAP API may have a method such as:</p>
  
  <pre><code>function createComment(articleID, content);
  </code></pre>
  
  <p>This would ideally create a comment on the given article and attribute it to the user who was authenticated.</p>
  
  <p>Authentication is being handled via http auth. So, the nusoap_server object has the user information.</p>
  
  <p>How can createComment have access this information? It knows nothing about the server.  I wanted to avoid putting the user info in the global space, but I am starting to think there's no other easy way.</p>
  
  <p>Is there a technique that allows the public signature for the method to remain as stated above, while the implementation method has additional arguments (user info)?</p>