I have an Win32 application which runs on the Windows server (2003 & later). My application has to call a REST service to POST some JSON data.
How can I proceed with implementation? Which library or SDK should I use to call REST service from C++ application.
Please suggest.
Thanks in advance.
I'd suggest using modern C++11 Casablanca REST API developed by Microsoft. This API is now included into Visual Studio installation package. You can also use WinHTTP API which is kind of legacy stuff. There is also MFC/ATL implementation called ATL Server that does include HTTP Client classes.
Related
I'm facing a annoying problem for the last couple days. I've made a Win32 application who calls some functions via WebServices. I've used the WSDL importer in order to get the WebService methods. Within the Win32 application I am able use every method to access this WebService, however I need this software to run as a Windows Service.
So I have created a Windows Service Application and added the WebService units. But now when I call these functions I get a ERemotable Exception:
There is any difference in the process of make use of webservices from a Windows Service Application and the process used to Win32 applications?
If anyone can give me a hint, or point me some direction I'll be very glad.
PS: I am using a HTTPRIO component and Delphi XE5 in order to do this.
How do you use cloud storage such as Dropbox in your C++ Apllication ? I've checked out their API and they only have Java, Python, and Ruby options. If you cant use dropbox with a c++ app, is therte any cloud storage provider that has an API for C++.
The drop box APIs seem to be wrappers for a http interface.
So if you want to hit them up from C++ you can use a http supporting library like libcurl to access stuff using the REST api
Droper is an open source C++/Qt Dropbox client that I have recently wrote. It can be compiled for Windows and Linux, but the GUI is optimized for Symbian mobile phones. Check it out.
I've found several differnet APIs on their website, righ under the place you propably found the ruby / pathon stuff..
http://sharpbox.codeplex.com/
http://github.com/dkarzon/DropNet
Not sure if this is, wha you were looking for..
How would I go about generating Visual Basic 6 Proxy dll/tlb from a WSDL file?
Similar to the WSDL2Java for java, but for Visual Basic.
You could generate a Web Service client proxy using one of the tools available in .NET, either through Visual Studio or one of the command-line programs (wsdl.exe when using ASMX or svcutil.exe when using WCF) and make the resulting class and its containing assembly available to COM.
If you want a VB6 native solution, I believe your best choice is using the SOAP Toolkit.
Also, see this related question on SO:
What is the best way to consume a web service from VB6?
I need to create a service on windows using Visual C++ 6.0 .
I am not familier with services so I read in the msdn site.
Can someone send me likns to agood sites explaining (with example) how to create service using Visual C++ 6.0 (prefer with examples) ?
You can use ATL to build a service in VC6. Try the ATL wizard, and let it generate the service stub for you, then you can flesh it out with proper functionality.
That said, the ATL framework's service support isn't great (at least wasn't in VC6), and will give you a service that's tailored to exposing COM objects.
There's a great book on services, called Professional NT Services:
http://www.amazon.com/Professional-NT-Services-Kevin-Miller/dp/1861001304/ref=pd_sim_b_3
See if you can get it used.
I am new in Blackberry. Can anyone help me out for following queries?
Which SDK is used in Blackberry?
In what language are Blackberry applications developed?
Can we call webservices through Blackberry applications?
Blackberry applications are written in Java. They support Java ME as well as some additional blackberry specific APIs. Check out http://na.blackberry.com/eng/developers/javaappdev/overview.jsp
As for calling a web service, yes you can do that as well. Check out the Rapid Application development tutorial at: http://na.blackberry.com/eng/developers/rapidappdev/
As heavyd said you can use the Rapid Application Development for accessing web services.
I've used the Visual Studio plugin before but this doesn't allow you as much access to the API as using the standard JDE plugin for Eclipse or the Blackberrys Java Development Environment (at least when I used it). It all depends on what you want to do, whether it's whip up a quick app or create a fully customised sweet looking application that'll take a little longer.
If you don't decide to go down the RAD route you can use a 3rd party library like KSOAP2, or, the way I do it, is use the Sun Wireless Toolkit (WTK) to create Stubs for you're web service methods which you can then call in your application. I've used this method for a .NET web service and it's pretty straightforward.