資源簡介
wcf 通過header 驗(yàn)證用戶名密碼例子源碼(無須證書)
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Linq;
using?System.Runtime.Serialization;
using?System.ServiceModel;
using?System.Text;
using?ServiceHost.BO;
namespace?ServiceHost
{
????//?NOTE:?If?you?change?the?interface?name?“IMessageHeaderAuthentication“?here?you?must?also?update?the?reference?to?“IMessageHeaderAuthentication“?in?Web.config.
????[ServiceContract]
????public?interface?IMessageHeaderAuthentication
????{
????????[OperationContract]
????????Person?GetPerson();
????}
}
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件???????1437??2009-02-03?10:39??SL_Secure_WCF\SL_Secure_WCF\Backup\ServiceHost\Behavior\AuthenticationBehavior.cs
?????文件???????2954??2009-02-03?10:40??SL_Secure_WCF\SL_Secure_WCF\Backup\ServiceHost\Behavior\AuthenticationInvoker.cs
?????文件????????357??2009-02-03?10:10??SL_Secure_WCF\SL_Secure_WCF\Backup\ServiceHost\BO\Person.cs
?????文件????????381??2009-02-02?15:12??SL_Secure_WCF\SL_Secure_WCF\Backup\ServiceHost\clientaccesspolicy.xm
?????文件????????526??2009-02-02?15:09??SL_Secure_WCF\SL_Secure_WCF\Backup\ServiceHost\IMessageHeaderAuthentication.cs
?????文件????????580??2009-02-02?15:09??SL_Secure_WCF\SL_Secure_WCF\Backup\ServiceHost\IMessageHeaderOperationBehaviourAuthentication.cs
?????文件????????564??2009-02-02?15:10??SL_Secure_WCF\SL_Secure_WCF\Backup\ServiceHost\IMethodParameterAuthentication.cs
?????文件????????493??2009-02-02?15:08??SL_Secure_WCF\SL_Secure_WCF\Backup\ServiceHost\INoAuthentication.cs
?????文件????????148??2009-02-02?15:03??SL_Secure_WCF\SL_Secure_WCF\Backup\ServiceHost\MessageHeaderAuthentication.svc
?????文件???????1540??2009-02-03?10:08??SL_Secure_WCF\SL_Secure_WCF\Backup\ServiceHost\MessageHeaderAuthentication.svc.cs
?????文件????????184??2009-02-02?15:03??SL_Secure_WCF\SL_Secure_WCF\Backup\ServiceHost\MessageHeaderOperationBehaviourAuthentication.svc
?????文件????????914??2009-02-03?10:41??SL_Secure_WCF\SL_Secure_WCF\Backup\ServiceHost\MessageHeaderOperationBehaviourAuthentication.svc.cs
?????文件????????152??2009-02-02?15:03??SL_Secure_WCF\SL_Secure_WCF\Backup\ServiceHost\MethodParameterAuthentication.svc
?????文件????????942??2009-02-03?10:08??SL_Secure_WCF\SL_Secure_WCF\Backup\ServiceHost\MethodParameterAuthentication.svc.cs
?????文件????????126??2009-02-02?15:02??SL_Secure_WCF\SL_Secure_WCF\Backup\ServiceHost\NoAuthentication.svc
?????文件????????632??2009-02-02?15:12??SL_Secure_WCF\SL_Secure_WCF\Backup\ServiceHost\NoAuthentication.svc.cs
?????文件???????1490??2009-02-02?14:59??SL_Secure_WCF\SL_Secure_WCF\Backup\ServiceHost\Properties\AssemblyInfo.cs
?????文件???????5341??2009-02-03?10:38??SL_Secure_WCF\SL_Secure_WCF\Backup\ServiceHost\ServiceHost.csproj
?????文件???????1350??2009-02-03?10:38??SL_Secure_WCF\SL_Secure_WCF\Backup\ServiceHost\ServiceHost.csproj.user
?????文件???????9970??2009-02-02?15:06??SL_Secure_WCF\SL_Secure_WCF\Backup\ServiceHost\Web.config
?????文件????????296??2009-02-02?14:33??SL_Secure_WCF\SL_Secure_WCF\Backup\SL_Secure_WCF\App.xaml
?????文件???????2397??2009-02-02?14:33??SL_Secure_WCF\SL_Secure_WCF\Backup\SL_Secure_WCF\App.xaml.cs
?????文件????????400??2009-02-02?15:37??SL_Secure_WCF\SL_Secure_WCF\Backup\SL_Secure_WCF\Error.cs
?????文件???????8234??2009-02-03?14:18??SL_Secure_WCF\SL_Secure_WCF\Backup\SL_Secure_WCF\Page.xaml
?????文件??????12606??2009-02-03?16:26??SL_Secure_WCF\SL_Secure_WCF\Backup\SL_Secure_WCF\Page.xaml.cs
?????文件????????207??2009-02-02?14:33??SL_Secure_WCF\SL_Secure_WCF\Backup\SL_Secure_WCF\Properties\AppManifest.xm
?????文件???????1453??2009-02-02?14:33??SL_Secure_WCF\SL_Secure_WCF\Backup\SL_Secure_WCF\Properties\AssemblyInfo.cs
?????文件???????1811??2009-02-02?15:32??SL_Secure_WCF\SL_Secure_WCF\Backup\SL_Secure_WCF\Service?References\AuthMethodParamServ\configuration.svcinfo
?????文件??????17930??2009-02-02?15:32??SL_Secure_WCF\SL_Secure_WCF\Backup\SL_Secure_WCF\Service?References\AuthMethodParamServ\configuration91.svcinfo
?????文件????????403??2009-02-02?15:32??SL_Secure_WCF\SL_Secure_WCF\Backup\SL_Secure_WCF\Service?References\AuthMethodParamServ\MethodParameterAuthentication.disco
............此處省略229個(gè)文件信息
評(píng)論
共有 條評(píng)論