如何在Web服务中公开方法 [英] How to Expose Method in webservice

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

问题描述

请朋友告诉我,如果我的网络服务中有10个方法,我想在十种方法中只显示三种方法,那么我需要做的就是举例说明。

解决方案

使用[WebMethod]属性。



http://msdn.microsoft.com/en-us/library/byxd99hx(v=vs.71).aspx



希望这对你有所帮助。


删除WebMethod属性或尝试更改访问修改器..



或者检查此链接一次... http://msdn.microsoft.com/en-us/ library / 765xy944.aspx [ ^

Please any buddy tell me if suppose i have 10 methods in my web service and i want to show only three methods among ten methods then what i need to do please give with example.

解决方案

by using [WebMethod] attribute.

http://msdn.microsoft.com/en-us/library/byxd99hx(v=vs.71).aspx

hope this helps you.


Either remove WebMethod Attribute Or Try changing Access Modifier..

Or Check this Link once... http://msdn.microsoft.com/en-us/library/765xy944.aspx[^]


这篇关于如何在Web服务中公开方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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