WCF服务认证 [英] WCF service authentication

查看:62
本文介绍了WCF服务认证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试开发可在Windows Server SQL Express R2远程计算机(云)上运行的WCF服务.
如何设计WCF服务?
我想从本地计算机访问该服务如何访问该服务?

我指的是链接: http://msdn.microsoft.com/en-us/library/ff650619.aspx [^ ]
它不满足我的要求.

请指导我!

I am trying to develop a WCF service which works on a Windows Server SQL Express R2 remote machine (cloud).
How to design that WCF service?
I want to access that service from local machine how to access that service?

I refer the link : http://msdn.microsoft.com/en-us/library/ff650619.aspx[^]
It doesn''t satisfied my requirement.

Please guide me!!

推荐答案

我已经在WPF中完成了一个使用WCF服务的项目.
就像下面一样.
1.在解决方案中添加一个新项目作为WCF类库.
2.添加1个WCF服务.
3.在Service.svc.cs文件中写入函数.
4.在带有服务和操作合同的界面"页面(IService.cs)中添加功能.
5.构建服务
6.发布服务.
7.将其托管在IIS上. (需要.Net Framework 4)
8.将此服务引用给您的Windows/WPF项目.并使用服务中编写的函数.
I have done a project in WPF which use WCF services.
It goes like following.
1. Add a new project as WCF Class library in a solution.
2. Add 1 WCF service.
3. Write function in Service.svc.cs file.
4. add function in Interface page(IService.cs) with Service and Operation Contract.
5. Build the service
6. Publish service.
7. Host it on IIS. (.Net framework 4 is required)
8. Give this service reference to your windows/ WPF project. and use function wrote in service.


这篇关于WCF服务认证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆