如何为不同的客户端创建包含不同功能的web服务,一个客户端只能访问其功能无法看到其他客户端功能 [英] How to make a webservices that include different function for different client, one client acess only their function not able to see another client funtion

查看:54
本文介绍了如何为不同的客户端创建包含不同功能的web服务,一个客户端只能访问其功能无法看到其他客户端功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的Memeber,



我在开发一个使用我的许多clients.web服务的web服务时遇到了问题,其中包括许多客户端的许多功能。但是一个客户端可以只能访问他们的功能,一个客户端无法访问另一个客户端功能。







谢谢

neeraj

Dear Memeber,

I have a problem during developing a webservices that consumed my many clients.web service that include many functions for many client.But one client can avaible to access only their function, one client not able to acces another client function.



Thanks
neeraj

推荐答案

来自MSDN:



认证后,您可以根据呼叫者的身份或角色成员资格,将呼叫者限制为Web服务公开的功能的子集。您可以限制访问服务端点(在.asmx文件级别),单个Web方法或Web方法中的特定功能。



查看以下两篇关于MSDN的白皮书:



http://msdn.microsoft.com/en-us/library/ff648643.aspx#c12618429_008 [ ^ ]



http://msdn.microsoft.com/en-us/library/ff648318.aspx [ ^ ]



顺便说一句,这是不是实施挑战,而是设计/架构主题。如果您不确定实施,我建议您回到您的建筑师(或负责设计的人)并讨论您的项目中最适合的建筑。
From MSDN:

After authentication, you can restrict callers to a subset of the functionality exposed by your Web service, based on the caller's identity or role membership. You can restrict access to service endpoints (at the .asmx file level), individual Web methods, or specific functionality inside Web methods.

Look at the following two whitepapers on MSDN:

http://msdn.microsoft.com/en-us/library/ff648643.aspx#c12618429_008[^]

http://msdn.microsoft.com/en-us/library/ff648318.aspx[^]

Btw, this is not a implementation challenge but a design/architecture topic. If you are not sure about the implementation, I would suggest you to go back to your Architect (or whoever is responsible for design) and discuss what suits best in your project.


这篇关于如何为不同的客户端创建包含不同功能的web服务,一个客户端只能访问其功能无法看到其他客户端功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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