tesicg
tesicg

Reputation: 4053

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

Upvotes: 1

Views: 277

Answers (1)

David Martin
David Martin

Reputation: 12248

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

Upvotes: -1

Related Questions