How to programmatically retrieve all of a web service's web methods' signatures?

限于喜欢 提交于 2019-12-11 05:29:25

问题


I'm trying to build a c# application that displays and invokes all of a specific web service's methods (the web service is written as a .asmx file).
I can go directly to the asmx file and get the methods names from the returned html, but I'm sure there is more elegant way to do it (this way doesn't reveals the web methods' signatures as well, only their names..).

So how can I programmatically ask the service what are it's methods?

Thanks.


回答1:


Get the WSDL of your web-service to discover all available methods on the web-service.

http://server/your-webservice.asmx?wsdl



来源:https://stackoverflow.com/questions/3820546/how-to-programmatically-retrieve-all-of-a-web-services-web-methods-signatures

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!