在c#中创建一个Web服务客户端。

问题描述:

我想在visual studio中创建一个Web服务windows窗体客户端,但我无法在intellisence中看到MyWebServiceSoapClient方法,会出现什么错误?



谢谢大家!

I wanna make a web service windows forms client in visual studio but I can't see the "MyWebServiceSoapClient" method in intellisence , what would be the error ?

Thanks guys !

首先需要为服务添加一个Web引用并生成一个代理类。

这可以是用于初始化客户端。
You first need to add a web-reference to the service and generate a proxy class.
This can be used to initialize the client.