1) I know that WSDL file is generated on client side when we want to use existing WCF service. This is in case we use "Add Service Reference..." option in Visual Studio. What I don't understand is - at what moment exactly WSDL file is used when we use the client proxy to invoke WCF service?
2) I don't know how to use or connect or attach existing in memory WSDL in the process of creation WCF service. I mean what should I write? Something like:
Uri mexAddress = new Uri("http://localhost:2240/Service1.svc?wsdl");
or:
Uri mexAddress = new Uri("http://localhost:2240/Service1.svc?" + SomeName.wsdl);
or:
?
Thank you in advance.
Goran