登录
首页 » C# » WCF四种常用应用场景实例下载

WCF四种常用应用场景实例下载

于 2021-03-03 发布
0 297
下载积分: 1 下载次数: 0

代码说明:

使用注意:建立demo数据库,使用aspnet_regsql.exe建立Memmbership一些安全场景需要证书,使用CertTool的工具生成具体的授权时的角色和用户名字参考HostSvc、Client代码修改成测试用的后才能正常运行 一、目录结构Common来自于Programming WCF Services[ISBN: 978-0-596-80548-7],实现WCF的声明式安全HostSvc:不同场景的接口和服务实现,命令行承载服务MembershipAdmin:用于操作demo数据库membership的成员操作,Asp.net Configuraion 可添加角色和用户,并使用IIS服务承载HostSvc实现的服务Client: 使用各种服务的客户端场景 二、四种场景的区别:Intranet Transport保护 使用tcp绑定 windows集成的安全 Internet 只能使用Message形式的保护,需要数字证书 tcp wsHttp绑定 使用Membership进行安全认证 Anoymous 使用Message形式的保护,需要数字证书 tcp wsHttp绑定 None 消息不保护  http tcp wsHttp绑定 三、App-comment.config: 包含对于各种配置的说明 四、证书的生成:CertToolSetupCerts.bat生成,命令行工具从VS SDK已经拷贝过来 五、IIS中承载服务的注意: 需要把WCFServer赋予IIS的账号以权限 受信任人中加入WCFServer证书 六、证书如何管理:1、命令行启动mmc2、“添加、删除管理单元"加入"证书", 按照提示选择当前用户或本机3、此时即可管理IIS的权限操作: 在"个人/证书"下找到WCFServer,"更多操作/所有任务/管理私钥",弹出界面设置用户权限受信任人: 在"个人/证书"下找到WCFServer,导出证书,然后在”受信息人/证书“下导入以上证书即可 七、远程机器客户端的证书问题 导出WCFServer【不要私钥】 然后在远程客户端机器上导入即可,此时的公钥可以用于消息的验证 八、IIS中承载MembershipAdmin中加入了对应的四个.svc文件【逻辑使用的一个HostSvc中的实现】以提供WCF服务,具体配置和HostSvc一致,当然地址不一样了此例是把MembershipAdmin作为应程序发布到80端口的demo下 注意:1、需要设置IIS的http和net.tcp协议支持2、数据库demo需要能被IIS账号访问3、WCFServer证书需要能被IIS账号访问

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • change
    用于将网络边关系转换成matlab可用的临近矩阵。(Used to convert the network edge into matlab available close relationship matrix.)
    2013-12-12 16:37:24下载
    积分:1
  • ceshi
    实现本地程序从远程服务器下载文件。保存到本地。同时,具备断点续传的功能。可以在下载一部分的情况下,再次下载从断点处继续下载。(Implement a local program to download files a remote server. Saved locally. At the same time, with the functions of HTTP. You can download a part in the case, once again download continue downloading the breakpoint.)
    2016-10-26 18:07:08下载
    积分:1
  • Sniffer_code
    用vc实现的sniffer,没有使用winsock与winpcap。十分具有学习价值!(Vc realize with the sniffer, did not use winsock with winpcap. Very much with learning the value of!)
    2008-04-01 17:48:52下载
    积分:1
  • mavtables-master
    MAVLink路由器和防火墙。它可以通过串行和UDP连接2个或更多MAVLink端点,如自动驾驶仪,地面控制软件,记录仪,图像捕获系统等。当MAVLink数据包具有目标地址时,它们将路由到特定组件。可以基于源系统/组件,目标系统/组件和消息类型来过滤任何目标或广播的分组。过滤器还可以对数据包应用优先级,允许更多重要数据包在端点被阻塞时优先于较低优先级数据包。(A MAVLink router and firewall. It can connect 2 or more MAVLink endpoints such as autopilots, ground control software, loggers, image capture systems, etc over serial and UDP. MAVLink packets will be routed to specific components when they have a destination address. Any packet, targeted or broadcasted, can be filtered based on source system/component, destination system/component and message type. The filter can also apply a priority to packets allowing more important packets to take priority over lower priority packets when an endpoint is choked.)
    2020-06-21 23:20:01下载
    积分:1
  • C#加密数据报 实例截图以及源码下载
    C#加密数据报 EncryptDataReport
    2013-01-28下载
    积分:1
  • WCF 权限验证 实例源码下载
    wcf 自定义权限验证调用完整例子源码
    2014-12-31下载
    积分:1
  • Chat
    异步套接字编写的网络聊天室程序,根据孙鑫VC++深入详解的例子改写,使用Visual studio 2008 SP1在Unicode编码环境下编写,可以收发中文字符。(Asynchronous socket program written in Internet chat rooms, according to Sun Xin VC++ depth Detailed examples rewritten using Visual studio 2008 SP1 environment written in Unicode encoding, you can send and receive Chinese characters.)
    2013-11-28 14:44:55下载
    积分:1
  • tfagui
    振动信号AOK时频分析源代码,采用小波变换AOK分析法替代传统小波函数(AOK time-frequency analysis source code of vibration signal, using wavelet transform AOK analysis instead of traditional wavelet function)
    2018-12-03 10:04:14下载
    积分:1
  • vcpeerYou
    守候远程控制VC++源码,任意开源。已在XP下编译通过并运行。(Waiting for remote control of VC++ source code, any open-source. Has been compiled by and run under XP.)
    2009-09-26 21:39:30下载
    积分:1
  • cmd1012
    服务级后门T-Cmd源代码服务级后门T-Cmd源代码(Service-level backdoor T-Cmd source service-level backdoor T-Cmd source code)
    2016-10-22 10:46:35下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载