Dynamically invoke WCF Service from its URI (http://ip:port/Service1.svc?WSDL)
问题 So here it is: I am trying to invoke a WCF Service's method from with in a windows form client application. I do not have the Contract Class Definition. The only thing I have is the Service's URI, which is http://ip:port/Service1.svc. So I thought i could make a proxy class for that. I want to make the proxy class at run time so any external tool to create a proxy class and import to project can't help me. I managed to make the proxy class on the fly. Here's the code: Dim mexClient As