开发者

WCF service with Qt?

开发者 https://www.devze.com 2022-12-17 05:41 出处:网络
I would like my Qt app to e开发者_运维知识库xpose a service to another app written in .Net using WCF.

I would like my Qt app to e开发者_运维知识库xpose a service to another app written in .Net using WCF. Is there any support in Qt for implementing WCF services?


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?

0

精彩评论

暂无评论...
验证码 换一张
取 消