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

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

于 2021-03-03 发布
0 296
下载积分: 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 个回复

  • Athena-DB-Editor-Finally
    ro DB文件编辑 很好的一款DB软件 服务端编辑(ro DB file editing)
    2014-09-19 06:13:55下载
    积分:1
  • Single-threaded-file-transfer
    实现单线程文件传输,不支持断点传出,功能相对简单,但是性能很好。(Achieve single-threaded file transfer, does not support breakpoints spread, function is relatively simple, but the performance is very good.)
    2013-06-11 12:51:41下载
    积分:1
  • ARP
    说明:  计算机网络编程,可以实现ARP解析,基于VC++,需要配置好wincap(Computer network programming, ARP parsing can be achieved, based on VC++, need to configure WINCAP)
    2018-12-27 11:37:09下载
    积分:1
  • QQ
    说明:  模仿qq的一个小程序,值得VC++初学者学习(Qq imitate a small program, it is worth learning VC++ beginners)
    2011-12-08 17:03:33下载
    积分:1
  • nas
    从libnids得到TCP重组的数据,当libnids的状态为NIDS_JUST_EST时,表示TCP建立连接,在此时给TCP流增加一个flow_id用来标识此连接;当libnids的状态为NIDS_DATA时,表示接受数据,当有新的数据到达时,根据flow_id把数据push到相应的流表中,为之后的数据分析做准备。因此,可以在此框架上增加符合http协议的应用解析(Data TCP libnids restructuring, when libnids status to NIDS_JUST_EST, said the TCP connection is established, at the same time adds a flow_id to TCP flow is used to identify this connection When libnids status to NIDS_DATA, accepted data, when new data arrives, according to flow_id to push data to the corresponding flow table, prepare the way for after data analysis. Can be increased on this framework, therefore, in accordance with the application of the HTTP protocol parsing)
    2015-02-02 17:44:36下载
    积分:1
  • network
    网络分析,选取点,对所选取的点进行网络分析和计算(Network analysis, select points, network analysis and calculation of the selected points)
    2017-06-27 15:06:09下载
    积分:1
  • SPEI
    SPEI计算SPEI的R语言版与可执行版(含下载网址).rar(SPEI calculated SPEI R-language version of the executable version (with download link). Rar)
    2020-10-17 14:37:27下载
    积分:1
  • shortest-path
    通信网络的架设问题 若要在n(≥10)个城市之间建设通信网络,只需要架设n-1条线路即可(With the Dijksra algorithm to network G from source points to the rest of the vertices of the shortest path)
    2014-01-11 23:32:27下载
    积分:1
  • 图象压缩与传输
    这个源码涉及到网络编程,图像处理,数据压缩与传输。(source involved in the programming of the network, image processing, data compression and transmission.)
    2005-07-06 14:52:04下载
    积分:1
  • Netmanag
    强大的网络管理工具,实现文件、邮件、网络等综合管理(Powerful network management tools, file, mail, Internet and other integrated management)
    2013-05-27 08:46:33下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载