title: Hide function input parameters in C# web-service?
body: <p>I have a question regarding if it is possible to hide inputs to a web-service method.</p>
  
  <p>Lets say that the fourth parameter takes a password as input, and we want this input only to be used on the client side.</p>
  
  <p>The function has 4 input parameters, and is there any way possible to still have all the input parameters to the function but make the fourth parameter invisible when accessing the .asmx file through the web-browser? This is to eliminate users trying to access the service and trying to input random data. </p>
  
  <p><img src="https://i.stack.imgur.com/cZUkA.jpg" alt="Parameter input in C# web service."></p>
  
  <p><strong>EDIT:</strong> To place this in an example.</p>
  
  <p>We have an iPhone application, when a user makes use of a function, some parameters are sent to the web-service along with the fourth parameter that should contain a key of some sort to validate that the user is on an actual iPhone using the application and not someone accessing the web-service trying to access data. </p>
  
  <pre><code>public someVariable someFunction(someVar parameter1,someVar parameter2,someVar parameter3,someVar parameter4)
  {
  
      if (key.isMatch(parameter4))
      {
  
         The user is on an iPhone using the app : Proceeding.
  
      }
      else
         The user is not on an iPhone, cancelling function.
  
  }
  </code></pre>