[英]Extract methods and input parameters from a WSDL web-service C#
I wonder if there any way to extract the methods and the related input parameters from a WSDL web service in c#. 我想知道是否有任何方法可以从c#中的WSDL Web服务中提取方法和相关的输入参数。 Specifically i need a way to provide the endpoint URL of a web-service and get as a result the above information.
具体来说,我需要一种提供Web服务的端点URL并获得上述信息的方法。 Something like the "Add Service Reference" in VS.
类似于VS中的“添加服务参考”。 But what i want is to get those information by implementing a module and not by using any other tool.
但是我想要的是通过实现模块而不是通过使用任何其他工具来获取那些信息。 Does .NET provide any functions for that?
.NET是否为此提供任何功能? I'm using .NET 4.5.
我正在使用.NET 4.5。
Thank you 谢谢
You have 2 good options that come with .NET and you need to access both from VS command prompt. .NET附带2个不错的选择,您需要从VS命令提示符下访问它们。
EDIT 1: I think I misread your question. 编辑1:我想我读错了你的问题。 Well you can always use the generated class file by WSDL.exe in your application.
好了,您始终可以在应用程序中使用WSDL.exe生成的类文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.