简体   繁体   中英

How to dynamically invoke WCF service using existing wsdl?

Does anybody know how to dynamically invoke WCF service using existing wsdl file? Thus, I don't need to use "Add Service Reference...". Everything should be done dynamically.

I've searched the internet and haven't found anything that is similar to:

EndpointAddress address = new EndpointAddress("http://localhost:3929/Service1.svc?wsdl");

I use VS2008 (.NET 3.5).

Thank you in advance.

Goran

如果您查看Channel Factory,这应该是您所需要的。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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