How to dynamically invoke WCF service using existing wsdl?

↘锁芯ラ 提交于 2019-12-11 06:40:31

问题


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


回答1:


If you take a look at the Channel Factory this should be what you need.



来源:https://stackoverflow.com/questions/12668942/how-to-dynamically-invoke-wcf-service-using-existing-wsdl

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!