Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WCF service with Qt?

Tags:

c++

wcf

qt

qt4

I would like my Qt app to expose a service to another app written in .Net using WCF. Is there any support in Qt for implementing WCF services?

like image 974
Morten Fjeldstad Avatar asked Oct 14 '22 10:10

Morten Fjeldstad


1 Answers

AFAIK there is no 'native' Qt support for WCF or extensions; however as you know WCF can consume and expose a web service (in addition to a WCF or remoting service, etc.) All you need to do is expose it as a Web Service for the other .NET app to consume.

But that brings up an interesting aspect; usually you would write a windows service (I presume you are on Windows) which is exposed as a Web service rather than one via Qt. Qt is not ideal as it is a GUI framework (and a very good one); you will get into a few interesting situations as discussed here. It is usually easier to consume a web service with Qt as shown in this example.

Do you have the option to expose your service using some other stack such as ASP.NET or WCF or Java?

like image 115
bahree Avatar answered Nov 15 '22 05:11

bahree