webservice securityhttp://forums.asp.net/t/1790852.aspx/1?webservice+securityMon, 16 Apr 2012 03:55:54 -040017908524923424http://forums.asp.net/p/1790852/4923424.aspx/1?webservice+securitywebservice security <p>Hi,</p> <p>I am building an application using webservices, for example on my website there is a form, used to obtain data from webservice, I have already finisher the data providing, but I have to think about security too. Sou can you tell me some advices, what things I should do? &nbsp;How should I for example find out,&nbsp;<span>whether the ws call comes from my form or not, or how often is the ws called, to protect it from bots?</span></p> <p><span>I'd be very grateful for all advices, even theoretical.</span></p> <p><span>Thanks</span></p> 2012-04-09T17:04:38-04:004925940http://forums.asp.net/p/1790852/4925940.aspx/1?Re+webservice+securityRe: webservice security <p>The simple way to authenticate .NET web service using custom SOAP header. in the web service you can check the username and password credential before call other web method. Here is a article about it.</p> <p><a href="http://www.codeproject.com/Articles/27365/Authenticate-NET-Web-Service-with-Custom-SOAP-Head">http://www.codeproject.com/Articles/27365/Authenticate-NET-Web-Service-with-Custom-SOAP-Head</a></p> 2012-04-11T02:24:25-04:004927431http://forums.asp.net/p/1790852/4927431.aspx/1?Re+webservice+securityRe: webservice security <p>Thank you and what about if I want to call the webservice from javascript?</p> 2012-04-11T16:14:58-04:004933638http://forums.asp.net/p/1790852/4933638.aspx/1?Re+webservice+securityRe: webservice security <p>In the web method you can protected it with SOAP header, if you want to call it and pass user credential, then create a request object in SOAP format with header value in it and then send it to the server. For more about this, please check the following article.</p> <p><a href="http://www.aspnetajaxtutorials.com/2010/01/how-to-call-webservicescriptservice.html">http://www.aspnetajaxtutorials.com/2010/01/how-to-call-webservicescriptservice.html</a></p> 2012-04-16T03:55:54-04:00