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

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

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

  • sort_sunshine
    实现客户端和服务器端的通信,但是功能很有限,只是单向的通信。(To achieve client and server-side communication, but function is very limited, only one-way communication.)
    2010-07-19 21:10:43下载
    积分:1
  • 家庭视频监控源码
    家庭视频监控源码
    2015-05-11下载
    积分:1
  • elementgetattributens02
    The method getAttributeNS retrieves an attribute value by local name and namespace URI. Using the getAttributeNodeNS, retreive and verify the value of the default attribute node.(The method getAttributeNS retrieves an attribute value by local name and namespace URI. Using the getAttributeNodeNS, retreive and verify the value of the default attribute node.)
    2014-09-21 23:35:56下载
    积分:1
  • age
    说明:  source codigo wyd v 7,54 edicao em c++ visual studio 2017
    2020-06-19 00:40:01下载
    积分:1
  • RemoteControl
    远程桌面控制的完整实现源码,设计文件在http://blog.csdn.net/dijkstar/article/details/9076911有详细描述,里面整合了位图压缩、鼠标键盘低级钩子等。里面的每项技术都具有工程参考价值。(Complete implementation of the remote control code, design documents described in detail in http://blog.csdn.net/dijkstar/article/details/9076911, which integrates bitmap compression, low-level mouse and keyboard hooks and so on. Inside each technology with engineering reference value.)
    2020-11-02 14:29:53下载
    积分:1
  • HTTPGetPost_src1
    说明:  httppost的实现方法基于visualc++实现(httppost based on the method to achieve visualc)
    2006-04-22 21:50:55下载
    积分:1
  • Netmanag
    强大的网络管理工具,实现文件、邮件、网络等综合管理(Powerful network management tools, file, mail, Internet and other integrated management)
    2013-05-27 08:46:33下载
    积分:1
  • myOwnServer002
    我的网络编程作业,服务器端的应用程序,与myOwnClient001一起使用(my network programming operations, the server-application procedures used together with myOwnClient001)
    2007-04-01 08:19:48下载
    积分:1
  • 111
    说明:  实时视频传输有很大的实用价值,对采集到的原始视频信息进行压缩编码,获取己编码视频流是实现实时视频传输和QoS研究的关键。(Real-time video transmission are of great practical value of collected information for the original video coding, video streaming access to their own code is to achieve real-time video transmission and the key QoS.)
    2009-08-01 11:04:37下载
    积分:1
  • and
    各种实时操作系统与windowsce性能的对比,可以发现windowsce的优缺点(Comparing the performance of various real-time operating systems with windowsce, the advantages and disadvantages of windowsce can be found.)
    2018-11-29 11:15:19下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载