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

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

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

  • mfcping
    说明:  这是非常好的关于网络编程的例子,实现了ping程序,对于学习网络编程的人员来说是非常难得的材料。(It is a very good example of programming on the network to achieve the ping process, for learning network programming staff is very rare material.)
    2008-10-07 13:19:18下载
    积分:1
  • corum2
    科隆2服务端源码.....请大家下载修改,BUG多(Cologne 2 server ..... please everyone download the source code modifications, BUG more)
    2008-05-14 18:28:12下载
    积分:1
  • udp
    基于udp的服务器与客户端之间传输字符串(Udp-based server and the client to transfer a string)
    2010-11-06 22:24:05下载
    积分:1
  • Mysipphonevs2005
    我这段代码是一个名为Youtoo的sipphone工程改编而来。(www.pudn.com 上有) 原工程是在vc 6.0下开发,而我是在vs 2005 把代码重新改写了一边,同时稍微改了一下界面。 我用来测试客户端(ua)的服务器是 Brekeke SIP Server(安装完后可以注册)。 在程序运行前应该在vs2005重新设置lib和头文件的位置。 库放在lib目录下 头文件放在include目录下。(I have this code is a Youtoo adapted from the sipphone works. (Www.pudn.com have) the original project is developed in vc 6.0, while I was in vs 2005 to rewrite the code aside, at the same time slightly changed about the interface. I used to test the client (ua) of the server is Brekeke SIP Server (can be registered after installation). Before the program runs in VS2005 should be re-instated in the lib and header file location. Treasury on the lib directory下头document include directory.)
    2020-07-02 00:40:01下载
    积分:1
  • usesjabyrinth
    The turtle walks the labyrinth experiment, uses the MFC in VC to draw the labyrinth, and lets the turtle find a way out of the maze
    2018-12-24 04:39:14下载
    积分:1
  • testcmd
    通过微过滤器的方式实现的网络控制功能,简单实现了一下禁止当前机器断网的功能。(Through micro-filters to achieve the network control functions, simple look prohibit the machine off the network.)
    2012-04-18 16:17:13下载
    积分:1
  • UdpClient
    在VS2010环境中,根据UDP协议通信的原理,用C++编写的基于UDP的客户端的代码。(In the VS2010 environment prepared by the UDP-based client C++ code)
    2013-12-14 20:52:31下载
    积分:1
  • UDPTest
    UDP协议测试工具,可根据设定绑定UDP绑定IPD端口,进行相关的UDP吸引收发数据测试。(UDP protocol test tools, according to the set bound to the UDP binding IPD port, the UDP attract send and receive data test.)
    2013-04-18 09:18:39下载
    积分:1
  • C#版 联众远打码实例下载 很高的验证码识别率
    国内知名的验证码识别程序,很高的验证码识别率
    2013-09-04下载
    积分:1
  • 选择重传
    说明:  实现计算机网络中的选择重传协议,并且采用了滑动窗口。(Implementation of selective retransmission protocol)
    2020-06-24 02:43:21下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载