如何从wsdl文件中为.NET中的特定方法生成代理类? [英] how to generate proxy class from wsdl file for a particular method in .NET?

查看:61
本文介绍了如何从wsdl文件中为.NET中的特定方法生成代理类?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从wsdl文件中为.NET中的特定方法生成代理类?

how to generate proxy class from wsdl file for a particular method in .NET?

推荐答案

按照答案 - 如果在webservice的情况下如何从WSDL生成代理类 [ ^ ]。

Follow the answer - How to generate proxy class from WSDL in case of webservice[^].
引用:

你需要使用ServiceModel元数据实用工具 [ ^ ],或Visual Studio的添加服务引用对话框 [ ^ ],以便为要与之通信的服务生成客户端代理。生成的代理将提供抽象服务契约的类,您可以对客户端应用程序进行编程以与这些类进行交互。

You would need to use the ServiceModel Metadata Utility Tool[^], or Visual Studio''s Add Service Reference Dialog[^] in order to generate a client proxy for the service with which you want to communicate. The generated proxy will provided classes that abstract the service contract, and you can program your client applications to interact with these classes.


这篇关于如何从wsdl文件中为.NET中的特定方法生成代理类?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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