Reputation: 529
I have a c# WCF REST service running on Azure. I need to consume and longpoll the service from an unmanaged application.
The c++ app will not be running on the .NET framework.
Is there a best practice or library already out there that makes c++ consumption of WCF Services easy?
Upvotes: 0
Views: 974
Reputation: 163
You could try to use gSOAP, it is a well known Toolkit for SOAP Web Services and XML-Based Applications, it is written in c and c++, to both: create and consume web services. It supports many standards of W3C and also can consume WCF. You can find it in gsoap2.sourceforge.net Best Regards
Upvotes: 0
Reputation: 4094
Microsoft is developing their Casablanca library for exactly this use case. You can get a dev preview version of it here: http://msdn.microsoft.com/en-us/devlabs/casablanca.aspx
Alternatively, here at work we will usually write a C# component that consumes a WCF service and expose the service's objects through COM to C++. We have also had some success more recently with KDSOAP, which would mean bringing Qt into your project.
Upvotes: 4