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

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

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

  • SendFileClient
    VC++实现类似于QQ文件传输功能的文件发送与接收程序示例,分为服务端和客户端,客户端首次接收数据,将判断文件包大小,数据包中一定包含完整的数据包结构信息,数据不一定完整;读取数据包的大小,包含数据包结构大小和数据大小,之前接收的数据与现在接收的数据能够构成至少一个完整的数据包,文件接收完毕则设置结束标记,若终止的连接,则弹出窗口告诉用户,对方终止了文件传送。   服务端程序是比较简单的,基本是复制文件数据、判断文件是否传递成功、等待对方收受发送任务或取消发送任务,分包继续发送文件等功能(VC++ implementation is similar to QQ file transfer capabilities to send and receive files program examples, divided into server and client, the client receives the first data packet to determine the file size, the packet must contain the complete information packet structure, the data is not must complete reading packet size, including the size and structure of the data packet size, and previously received data received data can now constitute at least one complete packet, the file has been received then set the mark, if the connection is terminated, the pop-up window telling the user, the other party to terminate the file transfer. Server program is relatively simple, basically copying the file data, to determine whether the file transfer is successful, waiting for the other to accept or cancel the sending task sends tasks, subcontractors continue to send files and other functions )
    2014-06-03 13:50:03下载
    积分:1
  • Chat_demo
    服务器,客户端聊天小程序,可能功能有点简单,但是原理都在(The server, the client chat applet)
    2013-09-03 11:12:31下载
    积分:1
  • LanChat
    局域网聊天工具,网络编程课程作业,需要的下载(LAN chat tools, web programming course work, you need to download)
    2010-12-10 03:26:35下载
    积分:1
  • 爬虫爬取机场信息
    【实例简介】采集的www.cdairport.com 网站的数据
    2021-05-28 00:31:18下载
    积分:1
  • Microsoft.Press.Code.Complete.Second.Edition
    这是一本百科全书式的软件构建手册,强调提高软件质量的种种实践方法,不过这个是英文版的,中文版太大了,上传不了,有需要的请联系我(This is an encyclopedic handbook of software construction, with emphasis on increasing the variety of software quality practices. But this is the English version, the Chinese version too, can upload, it is necessary to please Contact)
    2007-05-08 09:42:09下载
    积分:1
  • socket_Programming
    Programming socket 网络编程(Programming socket )
    2010-11-28 14:56:14下载
    积分:1
  • POQLALC
    说明:  C语言程序设计教程电子教案的源代码,很好用,可以用(C language programming course electronic teaching plan of the source code, very easy to use, can use)
    2018-12-25 21:01:24下载
    积分:1
  • modbus TCPIP协议client-Server端源代码
    利用vc++实现modbus tcp通信(Using vc++ to implement Modbus TCP communication)
    2018-02-24 17:45:27下载
    积分:1
  • Logic
    说明:  调整图像分割的逻辑,可以自适应调整,简单可行(Adjust the logic of image segmentation, which can be adjusted adaptively, simple and feasible)
    2020-08-10 16:56:11下载
    积分:1
  • c# socket与基恩士plc通讯、和扫码枪通讯
    工业通讯,c# socket与基恩士plc通讯、和扫码枪通讯
    2020-11-29下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载