隐藏Web方法或自定义WSDL文件 [英] Hiding web methods or custom WSDL file

查看:131
本文介绍了隐藏Web方法或自定义WSDL文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想让我的一些web方法可用,但基本上想要在WSDL文件中隐藏它们,所以不只是每个人都可以使用它们。有没有办法使用

属性仍然在WSDL和其他人中暴露某些Web方法

不?或者有没有办法提供客户WSDL文件,我可以在那里拿出与我想要隐藏的方法相关的数据,并让WSDL成为

一个用户通过常规方式访问WSDL文件时显示.Net
http:// host / url?WSDL)


谢谢,

Ryan

I want to make some of my web methods avaible but basically want to hide them
in the WSDL file so not just everyone can consume them. Is there a way using
attributes to still have certain web methods exposed in the WSDL and others
not? Or is there a way to provide a customer WSDL file where I can just take
out the data relating to the methods I want to hide and have that WSDL be the
one that .Net displays when users access the WSDL file through the usual way
(http://host/url?WSDL).

Thanks,
Ryan

推荐答案

" =?Utf-8?B?ZHFfdXNlcl9janI =?=" < dq ********* @ discussion.microsoft.com>

在新闻中写道:4A ****************** **************** @ microsof t.com:
"=?Utf-8?B?ZHFfdXNlcl9janI=?=" <dq*********@discussions.microsoft.com>
wrote in news:4A**********************************@microsof t.com:
我想让我的一些网络方法可用,但基本上想要隐藏它们在WSDL文件中,不只是每个人都可以使用它们。是否有一种方法可以使用属性来暴露某些Web方法
I want to make some of my web methods avaible but basically want to
hide them in the WSDL file so not just everyone can consume them. Is
there a way using attributes to still have certain web methods exposed




为了安全起见,你应该实现适当的安全性,而不是一个很差的替代它。更好

制作两个独立的网络服务,如果第一个开放则保护第二个。

-

Chad Z. Hower( aka Kudzu) - http://www.hower.org/Kudzu/

编程是一种反击的艺术形式


博客: http://blogs.atozed.com/kudzu


" =?Utf-8?B? ?ZHFfdXNlcl9janI = =" < dq ********* @ discussion.microsoft.com>

在新闻中写道:4A ****************** **************** @ microsof t.com:
"=?Utf-8?B?ZHFfdXNlcl9janI=?=" <dq*********@discussions.microsoft.com>
wrote in news:4A**********************************@microsof t.com:
我想让我的一些网络方法可用,但基本上想要隐藏它们在WSDL文件中,不只是每个人都可以使用它们。是否有一种方法可以使用属性来暴露某些Web方法
I want to make some of my web methods avaible but basically want to
hide them in the WSDL file so not just everyone can consume them. Is
there a way using attributes to still have certain web methods exposed




为了安全起见,你应该实现适当的安全性,而不是一个很差的替代它。更好

制作两个独立的网络服务,如果第一个开放则保护第二个。

-

Chad Z. Hower( aka Kudzu) - http://www.hower.org/Kudzu/

编程是一种反击的艺术形式


博客: http://blogs.atozed.com/kudzu


我不是真正为安全而射击SE。基本上,我们正在运送我们产品的客户将使用的网站

服务。但是,我们发货的

应用程序的一部分将使用一些新的Web服务方法,而我们不希望
想要将它们暴露给客户''''''''''''''''''''''''''''''''''''因此,我们不希望将它们暴露给客户,以便轻松启动<​​br />
使用。这就是我开始隐藏一些网络方法的原因。

这样做的建议将不胜感激。


谢谢,

Ryan


" Chad Z. Hower aka Kudzu"写道:
I''m not really shooting for security per se. Basically, we''re shipping a web
service which customers of our product will use. However, one part of the
application we''re shipping will use some new web service methods and we don''t
want to expose them to the customer as they''ll be changing in the near
future. Thus, we don''t want to expose them to customers to easily start
using. That is the reason I''m shooting to hide some of the web methods.

Suggestions on doing so would be greatly appreciated.

Thanks,
Ryan

"Chad Z. Hower aka Kudzu" wrote:
" =?Utf-8?B?ZHFfdXNlcl9janI =?=" < dq ********* @ discussion.microsoft.com>
在新闻中写道:4A ********************** ************ @ microsof t.com:
"=?Utf-8?B?ZHFfdXNlcl9janI=?=" <dq*********@discussions.microsoft.com>
wrote in news:4A**********************************@microsof t.com:
我想让我的一些web方法可用,但基本上想要将它们隐藏在WSDL文件中所以不只是每个人都可以消费它们。是否有一种方法可以使用属性仍然暴露某些Web方法
I want to make some of my web methods avaible but basically want to
hide them in the WSDL file so not just everyone can consume them. Is
there a way using attributes to still have certain web methods exposed



为了安全起见,您应该实现适当的安全性,而不是一个很差的替代它。如果第一个是开放的话,最好制作两个单独的网络服务并保护第二个网站服务。

-
Chad Z. Hower(又名Kudzu) - http://www.hower.org/Kudzu/
编程是一个反击的艺术形式

博客: http://博客。 atozed.com/kudzu



这篇关于隐藏Web方法或自定义WSDL文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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