简体   繁体   English

Web服务Windows窗体应用程序

[英]Web service windows form application

On adding web service reference from wsdl, the service client class generated is duplexclientbase instead of clientbase. 从wsdl添加Web服务引用时,生成的服务客户端类是duplexclientbase而不是clientbase。 In other projects it is clientbase. 在其他项目中,它是clientbase。 Can you suggest a way so that the autogenerated service client will be clientbase. 您能否建议一种方法,使自动生成的服务客户端成为clientbase。 Thanks in advance. 提前致谢。

This is because the client inherits from DuplexClientBase instead of ClientBase. 这是因为客户端继承自DuplexClientBase而不是ClientBase。 If you want to change the generated code you need to change the implementation of the proxy. 如果要更改生成的代码,则需要更改代理的实现。

If you want to learn more specifically about one way and duplex binding you can read this article: http://www.cnblogs.com/chucklu/p/4728528.html 如果您想更具体地了解一种方法和双工绑定,可以阅读以下文章: http : //www.cnblogs.com/chucklu/p/4728528.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM