Académique Documents
Professionnel Documents
Culture Documents
Why webservices? Provides for specialization of services/information. For example, you need to
know the latest stock prices. You can ask someone who job is to maintain this information rather
than maintain them yourself.
For example:
http://www.webservicex.com/TranslateService.asmx?WSDL
http://www.mindreef.net/soapscope/wsdldemo?
referer=xmethods&url=http://www.webservicex.com/TranslateService.asmx?WSDL
.Net security
Use the authentication tags in the web.config of the root folder of your site:
<configuration>
<system.web>
<authentication mode="Forms">
<forms name="name" loginUrl”login.aspx" />
</authentication>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
</configuration>
Windows is controlled by IIS. Right-click your site in IIS and set Basic or Integrated
authentication. Basic sends password in clear text. Integrated requires Internet Explorer.
<authorization>
<deny users="bob, jane"/>
<allow users="joe, steve”/>
</authorization>
try
objCmd.Connection.Open()
objReader = objCmd.ExecuteReader()
do while objReader.Read
intId = objReader.GetInt32(0).ToString()
loop
catch ex as OleDbException
lblMessage.Text = ex.Message
finally
objReader.Close()
objCmd.Connection.Close()
end try
<html><body>
<form runat="server">
<asp:Label id="lblMessage" runat="server"/><p>
Username:
<asp:Textbox id="tbUsername" runat="server" /><br>
Password:
<asp:Textbox id="tbPassword" TextMode="password" runat="server" /><p>
<asp:Button id="Submit" runat="server" onClick="Login" text="Submit" />
</form>
</body></html>
FormsAuthentication.SetAuthCookie(intID, false) sets a cookie named the content of inID and the
cookie doesn’t persist if the browser is closed (false).
Passport is controlled by www.passport.com. It’s a paid service that will authenticated your
users. Consumers can get a free passport. Businesses pay $1,500 to $10,000 yearly to
authenticate users. The advantage is that it provides centralized security and is handled by
those who are security experts, which may be lacking in your company.