显示Web服务及其方法. [英] display webservice and its methods.

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

问题描述

我知道端点,我正在寻找示例代码,该示例代码向我展示如何在C#中显示Web服务及其方法.
描述它的最好方法是"soapUI.exe"显示服务和方法的方法.另外,当您添加服务引用"时,VS2010会做得很好,提示用户输入端点,并列出了服务和选项.

我知道您只能在浏览器中键入URL,但不能随意输入.

非常感谢任何帮助.

I know the endpoint, I am looking for sample code that shows me how to display the the webservice and its mothod in C#.
The best way to describe it is the way "soapUI.exe" displayes the services and methods. Also, VS2010 does it nicely when you add a "Service Reference", user is prompt to enter the endpoint and the service and option is listed.

I know that you can just type the URL in the browser, but not relly wat I want.

any help is greatly appreciated

推荐答案

下载Web服务的WSDL.这是一个XML文件.解析它并提取您想要的.

这是一个示例:
http://stackoverflow.com/questions/4452724/parse-complex- wsdl-parameter-information-in-c-sharp
Download WSDL of webservice. It is a XML file. Parse it and extract what you want.

Here is an example:
http://stackoverflow.com/questions/4452724/parse-complex-wsdl-parameter-information-in-c-sharp


这篇关于显示Web服务及其方法.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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