How can I create a VB6 client connect to WCF web service?
Is there any better solution to create web service instead of using WCF, so that it is lot more easier to connect from VB6?
It really depends on what your requirements are exactly. Here are some suggestions:
AppDomain.CurrentDomain.SetupInformation.ConfigurationFile
as this stackoverflow answer illustrates. If your VB6 app is on the same LAN as your service this will have the advantage of allowing you to use netTcpBinding
which would have less overhead than the http bindings. You could also get really exotic and use something like netMsmqBinding
if you need disconnected access to the service.basicHttpBinding
if I was going to attempt to use that.webHttpBinding
, making raw http calls, and parsing the results yourself. You can find articles on writing a SOAP client in VB6 - such as this one
I would make some suggestions for you to look at alternative client or web-service technologies:
My recommendation is that if you are stuck with VB6 - and flexible for the web-service end - have a look at a REST architecture. If you want to go down the SOAP way - WCF has worked great for me, and you should be able to get something to work in VB6, but I would look for articles about using SOAP with VB6, as there will not be many about VB6 and WCF.