Develop web service with using MFC (without .net framework) - web-services

Can I develop a web service in VC++ with MFC and without using of .net framework?
I wrote several classes in VC++ and used CRecordSet, CString, CArray and some of the other MFC classes. I want to use my classes in a new project (web service). Then I cann't change all classes to use standard library.
I think , I should write web service in VC++ , without .Net framework (Unmanaged code). Is it correct? Is a simple Sample of web service in VC++ by Unmanaged code?

No there is no simple way to create a web service with unmanaged code only. The easiest way would be to just write a web service using C#.
Than just use a C++/CLI wrapper to access your MFC code.
This isn't a real problem.
Your MFC code should be capable run inside a standard DLL. There should be no UI core at all in it. And remember that a Web Service has no state!

Related

How to add web interface to c++ project

I have an application built on C++ code and deployed on UNIX machine. I have one VB front end interface for this code which is communicating using CORBA (ORBIX).
Now I need to add new web interface to this existing application. How can I do this without changing much of the existing application and code.

Call REST Service from Win32 application

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.

How to connect a C++ COM To a WCF Service

I'm looking to a way to connect a COM+ legacy application to a WCF Service, i have been researching this since a couple of days and i haven been lucky to find any useful information, can anyone point me into the right direction on this?
I Need the old COM+ component to make calls to a new C# WCF Service so I Need some kind of proxy in the COM Component that abstracts the communication with the Service.
Thanks in advance, i really appreciate any help.
I assume you mean that you have a WCF service, and that the code that runs your WCF service needs to make calls to your legacy application and send that data in/out of the WCF service, correct? If that's the case, then the WCF facet of your question is actually irrelevant.
What you're trying to solve is how to get your .NET application to speak COM to your legacy application.
Check out: Introduction to COM Interop and COM Interop Tutorials.
You'll need to generate type libraries for your COM component, reference them and System.Runtime.InteropServices in your C# project, and then you can make your calls across into COM boundaries of your legacy application code. There are a lot of other examples and tutorials out there if you search for COM Interop Tutorial, for example.
EDIT:
I thought more about your problem. You need to implement a proxy by creating a server that "looks" just like your old server (all the same COM+ interfaces etc etc), and then forwards the request (by crafting a new request) to your WCF service. You can do this in C#. I whiteboarded (archive) the basic idea around it from your original whiteboard.
The WCF service moniker can auto-generate a COM proxy for your WCF service. Your C++ code can call this proxy directly without the need for you to write any C# proxy code or explicit COM interop code.
Look at http://msdn.microsoft.com/en-us/library/ms729739(VS.85).aspx for details.
I particularly recommend this feature primarily because I owned the feature at Microsoft.

Services on windows using Visual C++ 6.0

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.

Blackberry what SDK and language are 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.