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

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

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

  • MY_QQ
    聊天界面,简易的聊天界面懂得更多,了解更多,沟通更多(Chat interface, a simple chat interface know more, learn more, communicate more)
    2013-07-17 22:34:50下载
    积分:1
  • smart-home-server
    说明:  基于select的多线程并发服务器,可用作基础服务器框架(Multithread concurrent server)
    2020-06-18 16:00:02下载
    积分:1
  • 电极贴片
    说明:  功能性电刺激疗法是使用低频电流刺激失去神经控制的肌肉,使其收缩,以替代或矫正器官及肢体已丧失的功能。本系统借助脑机接口技术研发了一款经络疏通按摩仪,借助脑机接口技术,通过MATLAB与单片机通讯,实现左右电极贴片分别刺激(Functional electrical stimulation therapy is to use low-frequency current to stimulate the muscle that has lost nerve control, so as to make it contract, so as to replace or correct the lost function of organs and limbs. With the help of brain computer interface technology, the system developed a meridian dredging massage instrument. With the help of brain computer interface technology, the system realized the stimulation of left and right electrode patches respectively through the communication between MATLAB and MCU)
    2021-02-18 14:11:46下载
    积分:1
  • C# 百度LBS云存储/云检索 接口封装SDK源码下载
    C# 百度LBS云存储/云检索 接口封装SDK源码下载
    2015-05-12下载
    积分:1
  • netkit-telnet-0.17
    telnet server telnet server(telnet server)
    2017-03-31 10:19:20下载
    积分:1
  • ONVIF协议摄像机(IPC)客户端序开发
    ONVIF网络摄像机(IPC)客户端程序开发(ONVIF network camera (IPC) client program development)
    2017-09-26 11:00:22下载
    积分:1
  • 放大镜
    简单放大镜,生成一个放大窗口,滚轮实现倍率调节(Simple magnifier generates an enlarged window, and the roller realizes magnification regulation)
    2017-07-15 15:37:07下载
    积分:1
  • tdma
    说明:  在多跳无线网络进行TDMA方式接入时候,时间是被划分为互不重叠的时隙,边长或定长帧在时隙中进行传输。 当面向节点时候,一个节点可以得到一个或者多个时隙,节点可以利用这些时隙向任何一条链路发送报文到邻居节点。 面向链路分配时候,则是某条单向链路分得一个或多个时隙,在这些时隙中,报文发送是单向的。(Time is divided into non-overlapping slots when multi-hop wireless networks are accessed by TDMA mode. Side-length or fixed-length frames are transmitted in slots. When facing a node, a node can get one or more slots, which can be used by the node to send messages to any link to its neighbors. For link allocation, a one-way link is allocated one or more slots, in which message transmission is one-way.)
    2019-02-08 15:27:07下载
    积分:1
  • kunction
    又一个简单的com服务器和客户端程序,呵呵,不错不错(Another simple com server and client program, ha, good)
    2018-10-09 18:15:15下载
    积分:1
  • 2005070915564913764
    SMTP协议实现总集,也是本人收集的,有7个程序的源代码!非常好!用于课程设计的!(SMTP protocol collection, and I collected a seven program's source code! Very good! For course design!)
    2005-08-29 14:09:06下载
    积分:1
  • 696516资源总数
  • 106611会员总数
  • 19今日下载