I have a WCF webservice running that has 2 endpoints (mex and wsHttpBinding). The webservice is hostend on the address: http://localhost:2412/Service1.svc and its contact is named "WcfService1.IService1"
I want to call this service from VBA in Excel. To that, I use the folowing code:
mexMonikerString = "service:mexAddress='http://localhost:2412/Service1.svc/mex'"
mexMonikerString = mexMonikerString + ", address='http://localhost:2412/Service1.svc'"
mexMonikerString = mexMonikerString + ", binding=WSHttpBinding_IService1"
mexMonikerString = mexMonikerString + ", contract=IService1"
Set service = GetObject(mexMonikerString)
When I try to execute this code I recieve the folowing Excel error message: Run-time error '-2147221020 (800401e4)'
Does anybody know what the cause of this error is and how I can resolve it?