CodeWarrior
CodeWarrior

Reputation: 7468

Communicate with WCF Windows Service in VB6?

I have a VB6 application that I want to communicate with a WCF Windows Service that I have written which imports Security Certificates. The only function in the service takes two string arguments. I have been having a lot of difficulty getting the two programs to communicate however.

In VB.NET, it is easy, just make a reference to the service as you would a web service. In VB6, however, it is not so simple it seems. Searching only seems to pull up examples of how to WRITE a Windows service in VB6.

Anyone know how this is done?

Upvotes: 5

Views: 5187

Answers (1)

user957902
user957902

Reputation: 3060

The easyest way I have found to access a WCF service from VB6 is to create a .Net ComObject wrapper for the service client. Then in VB6 all your are doing is a create object and calling some methods on the object. All the WCF work takes place in the .Net com object.

Upvotes: 11

Related Questions