[英]How I set a reference to a SOAP file and use this functions in C#
I want create a ASP.NET Application (aspx site) that connection with a database and create userconnections for the internet. 我想创建一个与数据库连接的ASP.NET应用程序(aspx站点)并为Internet创建用户连接。 I get a Soap Data ( soapapi.wsdl ).
我得到一个Soap数据( soapapi.wsdl )。 This file have all function for create a guestuser or get Informations about who apply a GuestUser and the Time.
该文件具有创建来宾用户或获取有关谁应用来宾用户和时间的信息的所有功能。
My Problem is that I don't know how I can add a reference to this Soap File in C# an execute this functions :( ? I search it but I don't found a good example :/ 我的问题是,我不知道如何在C#中添加对此Soap文件的引用并执行此功能:(?我在搜索它,但没有找到一个很好的例子:/
What I need for a Namespace and how i set a reference to this wsdl file ? 我需要一个命名空间,以及如何设置对此wsdl文件的引用?
tarasov 塔拉索夫
Try to add Service Reference 尝试添加服务参考
Right click on project file ->Add Service Reference. 右键单击项目文件->添加服务参考。 In the dialog point to this wsdl file.
在对话框中指向该wsdl文件。 At result a proxy c# class will be generated, that allows you to call soap methods as usual code
结果将生成一个代理c#类,使您可以像通常的代码一样调用soap方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.