text: Many of us want ot secure the calls to our web services, right?
  There are so many ways to do this, one of them is to use custom SOAP header.?
  Now let’s see how to do this in visual studio:
  ///
  ///(); }:
  public class SOAPHeaderService : System.Web.Services.WebService { //"; } private bool checkConsumer() { // In this method you can check the username and password // with your database or something // You could also encrypt the password for more security if (consumer != null) { if (consumer.userName == "Ahmed" && consumer.password == "1234") return true; else return false; } else return false; }’ll post ISA about the other techniques to secure web services.
  General
  News
  Question
  Answer
  Joke
  Rant
  Admin