title: Using web services in VB.net, sending an API key and other information to the server.
body: <p>I am new to web services in VB.net.  I have imported the WSDL into the Visual Studio 2010, but using the .net 2.0 "Web References" framework instead of the new "Service References".</p>
  
  <p>I simply need to learn how to pass my API key and one other piece of information through the API to the server.  This is all that I have.   What code to I need to add to </p>
  
  <p>a) Send the API Key
  b) Send the Database Mode String</p>
  
  <pre><code>Public Sub Call_Web_Service_Method()
      Dim CallWebService As New PersonService.Header()
      Dim sPostAPIKEY As String = CallWebService.APIKey()
      Dim sPostDatabasemode As String = CallWebService.DatabaseMode
  
  End Sub
  </code></pre>
  
  <p>I've been looking for two days now on how to send an API key to a server in VB.net and I have not found anything.  Please help a newbie.</p>
  
  <p>Thanks so much!</p>